diff options
| author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-03-30 01:28:13 +0000 |
|---|---|---|
| committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-03-30 01:28:13 +0000 |
| commit | 90160fa19ccaa9192b7ee5a86d3d27e56ed80bb7 (patch) | |
| tree | 667030dd79bab6fc5c5edb1c9b9b7ad4d6a7f110 /util-linux | |
| parent | d1c2f06bcae8d6126ac9c2d905ca32d8bc84f9ac (diff) | |
| download | busybox-w32-90160fa19ccaa9192b7ee5a86d3d27e56ed80bb7.tar.gz busybox-w32-90160fa19ccaa9192b7ee5a86d3d27e56ed80bb7.tar.bz2 busybox-w32-90160fa19ccaa9192b7ee5a86d3d27e56ed80bb7.zip | |
Dont try and automount devfs, rename some variables
git-svn-id: svn://busybox.net/trunk/busybox@2226 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'util-linux')
| -rw-r--r-- | util-linux/mount.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c index 60509d5f3..9f7ac43c1 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c | |||
| @@ -231,7 +231,7 @@ parse_mount_options(char *options, int *flags, char *strflags) | |||
| 231 | } | 231 | } |
| 232 | } | 232 | } |
| 233 | 233 | ||
| 234 | static int | 234 | extern int |
| 235 | mount_one(char *blockDevice, char *directory, char *filesystemType, | 235 | mount_one(char *blockDevice, char *directory, char *filesystemType, |
| 236 | unsigned long flags, char *string_flags, int useMtab, int fakeIt, | 236 | unsigned long flags, char *string_flags, int useMtab, int fakeIt, |
| 237 | char *mtab_opts, int whineOnErrors) | 237 | char *mtab_opts, int whineOnErrors) |
| @@ -239,8 +239,8 @@ mount_one(char *blockDevice, char *directory, char *filesystemType, | |||
| 239 | int status = 0; | 239 | int status = 0; |
| 240 | 240 | ||
| 241 | if (strcmp(filesystemType, "auto") == 0) { | 241 | if (strcmp(filesystemType, "auto") == 0) { |
| 242 | static const char *strings[] = { "tmpfs", "shm", "proc", "ramfs", "devpts", 0 }; | 242 | static const char *noauto_array[] = { "tmpfs", "shm", "proc", "ramfs", "devpts", "devfs", 0 }; |
| 243 | const char** nodevfss; | 243 | const char **noauto_fstype; |
| 244 | const int num_of_filesystems = sysfs(3, 0, 0); | 244 | const int num_of_filesystems = sysfs(3, 0, 0); |
| 245 | char buf[255]; | 245 | char buf[255]; |
| 246 | int i=0; | 246 | int i=0; |
| @@ -249,12 +249,12 @@ mount_one(char *blockDevice, char *directory, char *filesystemType, | |||
| 249 | 249 | ||
| 250 | while(i < num_of_filesystems) { | 250 | while(i < num_of_filesystems) { |
| 251 | sysfs(2, i++, filesystemType); | 251 | sysfs(2, i++, filesystemType); |
| 252 | for (nodevfss = strings; *nodevfss; nodevfss++) { | 252 | for (noauto_fstype = noauto_array; *noauto_fstype; noauto_fstype++) { |
| 253 | if (!strcmp(filesystemType, *nodevfss)) { | 253 | if (!strcmp(filesystemType, *noauto_fstype)) { |
| 254 | break; | 254 | break; |
| 255 | } | 255 | } |
| 256 | } | 256 | } |
| 257 | if (!*nodevfss) { | 257 | if (!*noauto_fstype) { |
| 258 | status = do_mount(blockDevice, directory, filesystemType, | 258 | status = do_mount(blockDevice, directory, filesystemType, |
| 259 | flags | MS_MGC_VAL, string_flags, | 259 | flags | MS_MGC_VAL, string_flags, |
| 260 | useMtab, fakeIt, mtab_opts); | 260 | useMtab, fakeIt, mtab_opts); |
