mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
vol-linux-dont-assume-ext2-20031208
to deal simply with /usr/include/linux potentially having 2.6 kernel headers in newer linuxes. given that we might not have ext2 as root, this check probably wasn't sufficient anyway.
This commit is contained in:
parent
4b01f15c0c
commit
36ac69eedc
@ -86,11 +86,6 @@ RCSID
|
||||
#include <sys/time.h>
|
||||
#endif /* ITIMER_REAL */
|
||||
#include "partition.h"
|
||||
#ifdef AFS_LINUX22_ENV
|
||||
#include <asm/types.h>
|
||||
#include <linux/ext2_fs.h>
|
||||
#define ROOTINO EXT2_ROOT_INO /* Assuming we do this on ext2, of course. */
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
@ -196,7 +191,7 @@ vol_DevName(dev_t adev, char *wpath)
|
||||
if (stat(part, &status) == -1) {
|
||||
continue;
|
||||
}
|
||||
#ifndef AFS_SGI_XFS_IOPS_ENV
|
||||
#if !defined(AFS_SGI_XFS_IOPS_ENV) && !defined(AFS_LINUX22_ENV)
|
||||
if ((status.st_ino !=
|
||||
ROOTINO) /*|| ((status.st_mode & S_IFMT) != S_IFBLK) */ ) {
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user