diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2001-03-30 01:28:13 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2001-03-30 01:28:13 +0000 |
commit | 1e117b47523e3001572277df29725e91bd786e39 (patch) | |
tree | 667030dd79bab6fc5c5edb1c9b9b7ad4d6a7f110 | |
parent | 84e229cfbe00d27ce81dad66c982bec0d50cdfd7 (diff) | |
download | busybox-w32-1e117b47523e3001572277df29725e91bd786e39.tar.gz busybox-w32-1e117b47523e3001572277df29725e91bd786e39.tar.bz2 busybox-w32-1e117b47523e3001572277df29725e91bd786e39.zip |
Dont try and automount devfs, rename some variables
-rw-r--r-- | mount.c | 12 | ||||
-rw-r--r-- | util-linux/mount.c | 12 |
2 files changed, 12 insertions, 12 deletions
@@ -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); |
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); |