Teacvh 'mount -t auto' to ignore usbdevfs
authorEric Andersen <andersen@codepoet.org>
Mon, 3 Sep 2001 19:45:47 +0000 (19:45 -0000)
committerEric Andersen <andersen@codepoet.org>
Mon, 3 Sep 2001 19:45:47 +0000 (19:45 -0000)
busybox/mount.c
busybox/util-linux/mount.c

index 6ffce2bf16f38a66f6885253e90d9114e2a4783b..2fc84f2c0f0481c52004f6cbe92ab746b407f849 100644 (file)
@@ -241,7 +241,7 @@ mount_one(char *blockDevice, char *directory, char *filesystemType,
        int status = 0;
 
        if (strcmp(filesystemType, "auto") == 0) {
-               static const char *noauto_array[] = { "tmpfs", "shm", "proc", "ramfs", "devpts", "devfs", 0 };
+               static const char *noauto_array[] = { "tmpfs", "shm", "proc", "ramfs", "devpts", "devfs", "usbdevfs", 0 };
                const char **noauto_fstype;
                const int num_of_filesystems = sysfs(3, 0, 0);
                char buf[255];
index 6ffce2bf16f38a66f6885253e90d9114e2a4783b..2fc84f2c0f0481c52004f6cbe92ab746b407f849 100644 (file)
@@ -241,7 +241,7 @@ mount_one(char *blockDevice, char *directory, char *filesystemType,
        int status = 0;
 
        if (strcmp(filesystemType, "auto") == 0) {
-               static const char *noauto_array[] = { "tmpfs", "shm", "proc", "ramfs", "devpts", "devfs", 0 };
+               static const char *noauto_array[] = { "tmpfs", "shm", "proc", "ramfs", "devpts", "devfs", "usbdevfs", 0 };
                const char **noauto_fstype;
                const int num_of_filesystems = sysfs(3, 0, 0);
                char buf[255];