aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount/mount.c
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2005-11-21 22:07:54 +0000
committerCraig Rodrigues <rodrigc@FreeBSD.org>2005-11-21 22:07:54 +0000
commitb1e6b7123df683203bc0222322dbade3a88c12bb (patch)
treeeeefa3924b8878a0017fc8f0f258c56582d77163 /sbin/mount/mount.c
parenta4104d1c3b9933f6ee0a7b8cb0687416a11125b4 (diff)
downloadsrc-b1e6b7123df683203bc0222322dbade3a88c12bb.tar.gz
src-b1e6b7123df683203bc0222322dbade3a88c12bb.zip
For mounting a UFS filesystem, call nmount() directly, instead of having
special logic which called mount() in a separate mount_ufs() function.
Notes
Notes: svn path=/head/; revision=152668
Diffstat (limited to 'sbin/mount/mount.c')
-rw-r--r--sbin/mount/mount.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c
index d95021676e60..89bc1cbda1d7 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);