Doh! I broke automatic filesystem type guessing. Fix mount so

it will properly fall back to /proc/mounts when /etc/filesystems
is missing, allowing mount to guess the correct fs type when a
fs type is not explicitly specified.
 -Erik
This commit is contained in:
Eric Andersen 2003-12-12 07:01:14 +00:00
parent 416c24224d
commit c1893c5801

View File

@ -284,6 +284,8 @@ static int mount_one(char *blockDevice, char *directory, char *filesystemType,
} }
} }
fclose(f); fclose(f);
} else {
read_proc = 1;
} }
if (read_proc && !status) { if (read_proc && !status) {
@ -314,8 +316,7 @@ static int mount_one(char *blockDevice, char *directory, char *filesystemType,
fclose(f); fclose(f);
} }
} else { } else {
status = status = do_mount(blockDevice, directory, filesystemType,
do_mount(blockDevice, directory, filesystemType,
flags | MS_MGC_VAL, string_flags, useMtab, fakeIt, flags | MS_MGC_VAL, string_flags, useMtab, fakeIt,
mtab_opts, mount_all); mtab_opts, mount_all);
} }