diff options
author | rodrigc <rodrigc@FreeBSD.org> | 2005-11-21 22:07:54 +0000 |
---|---|---|
committer | rodrigc <rodrigc@FreeBSD.org> | 2005-11-21 22:07:54 +0000 |
commit | 44e05bcf281306947b86cfde8820864b69146c63 (patch) | |
tree | eeefa3924b8878a0017fc8f0f258c56582d77163 /sbin | |
parent | a6da623025dcec2e0e4fcb5f210ca741274546bf (diff) | |
download | FreeBSD-src-44e05bcf281306947b86cfde8820864b69146c63.zip FreeBSD-src-44e05bcf281306947b86cfde8820864b69146c63.tar.gz |
For mounting a UFS filesystem, call nmount() directly, instead of having
special logic which called mount() in a separate mount_ufs() function.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/mount/mount.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index d950216..89bc1cb 100644 --- a/sbin/mount/mount.c +++ b/sbin/mount/mount.c @@ -507,9 +507,7 @@ mountfs(const char *vfstype, const char *spec, const char *name, int flags, return (0); } - if (strcmp(vfstype, "ufs")==0) { - ret = mount_ufs(argc, argv); - } else if (use_mountprog(vfstype)) { + if (use_mountprog(vfstype)) { ret = exec_mountprog(name, execname, argv); } else { ret = mount_fs(vfstype, argc, argv); |