Remove misguided klude around for 2.4.x-test* brokenness. Al Viro
authorEric Andersen <andersen@codepoet.org>
Wed, 5 Jul 2000 19:29:59 +0000 (19:29 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 5 Jul 2000 19:29:59 +0000 (19:29 -0000)
will be removing this stuff from /proc/mounts real soon now I am assured.
 -Erik

coreutils/df.c
df.c
mount.c
util-linux/mount.c
utility.c

index 8d457ec..ba3227f 100644 (file)
@@ -103,9 +103,6 @@ extern int df_main(int argc, char **argv)
                }
 
                while ((mountEntry = getmntent(mountTable))) {
-                       if (strcmp(mountEntry->mnt_fsname, "none") == 0) {
-                               continue;
-                       }
                        df(mountEntry->mnt_fsname, mountEntry->mnt_dir);
                }
                endmntent(mountTable);
diff --git a/df.c b/df.c
index 8d457ec..ba3227f 100644 (file)
--- a/df.c
+++ b/df.c
@@ -103,9 +103,6 @@ extern int df_main(int argc, char **argv)
                }
 
                while ((mountEntry = getmntent(mountTable))) {
-                       if (strcmp(mountEntry->mnt_fsname, "none") == 0) {
-                               continue;
-                       }
                        df(mountEntry->mnt_fsname, mountEntry->mnt_dir);
                }
                endmntent(mountTable);
diff --git a/mount.c b/mount.c
index 292be0c..76f048b 100644 (file)
--- a/mount.c
+++ b/mount.c
@@ -358,10 +358,6 @@ extern int mount_main(int argc, char **argv)
                        fatalError( "\nDEVMTAB_GET_MOUNTS: %s\n", strerror (errno));
 
                for( i = 0 ; i < numfilesystems ; i++) {
-                       /* klude around Linux 2.4.x stupidity */
-                       if (strcmp(mntentlist[i].mnt_fsname, "none") == 0) {
-                               continue;
-                       }
                        fprintf( stdout, "%s %s %s %s %d %d\n", mntentlist[i].mnt_fsname,
                                        mntentlist[i].mnt_dir, mntentlist[i].mnt_type, 
                                        mntentlist[i].mnt_opts, mntentlist[i].mnt_freq, 
@@ -384,10 +380,6 @@ extern int mount_main(int argc, char **argv)
 
                        while ((m = getmntent(mountTable)) != 0) {
                                char *blockDevice = m->mnt_fsname;
-                               /* klude around Linux 2.4.x stupidity */
-                               if (strcmp(blockDevice, "none") == 0) {
-                                       continue;
-                               }
                                if (strcmp(blockDevice, "/dev/root") == 0) {
                                        find_real_root_device_name( blockDevice);
                                }
index 292be0c..76f048b 100644 (file)
@@ -358,10 +358,6 @@ extern int mount_main(int argc, char **argv)
                        fatalError( "\nDEVMTAB_GET_MOUNTS: %s\n", strerror (errno));
 
                for( i = 0 ; i < numfilesystems ; i++) {
-                       /* klude around Linux 2.4.x stupidity */
-                       if (strcmp(mntentlist[i].mnt_fsname, "none") == 0) {
-                               continue;
-                       }
                        fprintf( stdout, "%s %s %s %s %d %d\n", mntentlist[i].mnt_fsname,
                                        mntentlist[i].mnt_dir, mntentlist[i].mnt_type, 
                                        mntentlist[i].mnt_opts, mntentlist[i].mnt_freq, 
@@ -384,10 +380,6 @@ extern int mount_main(int argc, char **argv)
 
                        while ((m = getmntent(mountTable)) != 0) {
                                char *blockDevice = m->mnt_fsname;
-                               /* klude around Linux 2.4.x stupidity */
-                               if (strcmp(blockDevice, "none") == 0) {
-                                       continue;
-                               }
                                if (strcmp(blockDevice, "/dev/root") == 0) {
                                        find_real_root_device_name( blockDevice);
                                }
index f3af01f..afc0e8f 100644 (file)
--- a/utility.c
+++ b/utility.c
@@ -1199,9 +1199,6 @@ extern struct mntent *findMountPoint(const char *name, const char *table)
                return 0;
 
        while ((mountEntry = getmntent(mountTable)) != 0) {
-               if (strcmp(mountEntry->mnt_fsname, "none") == 0) {
-                       continue;
-               }
                if (strcmp(name, mountEntry->mnt_dir) == 0
                        || strcmp(name, mountEntry->mnt_fsname) == 0)   /* String match. */
                        break;