]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE12-vol-linux-dont-assume-ext2-20031208
authorDerrick Brashear <shadow@dementia.org>
Sat, 10 Jan 2004 17:28:57 +0000 (17:28 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sat, 10 Jan 2004 17:28:57 +0000 (17:28 +0000)
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.

(cherry picked from commit 36ac69eedca1b2de6119ddd19b99dd302d5a496b)

src/vol/devname.c

index 90813e0f622dbc268f1aa0a2e0eadc69da6f8d09..4ce5f99579ab1c99c88ffdc31989230d81fe21c5 100644 (file)
@@ -85,11 +85,6 @@ RCSID("$Header$");
 #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
 
 /* ensure that we don't have a "/" instead of a "/dev/rxd0a" type of device.
  * returns pointer to static storage; copy it out quickly!
@@ -180,7 +175,7 @@ dev_t adev; {
        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;
        }