aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount/mount.c
diff options
context:
space:
mode:
authorBrian Feldman <green@FreeBSD.org>2000-01-15 14:28:14 +0000
committerBrian Feldman <green@FreeBSD.org>2000-01-15 14:28:14 +0000
commitab80d6fabc2f5e143d4e696a053696788ad56dad (patch)
tree0ea0a8de2fc968617116bdc10c1b80326cf91d91 /sbin/mount/mount.c
parentd789ee6ac844f90ba8ee8c6e33c85765bfe1c906 (diff)
downloadsrc-ab80d6fabc2f5e143d4e696a053696788ad56dad.tar.gz
src-ab80d6fabc2f5e143d4e696a053696788ad56dad.zip
This is another in Martin Blapp's N-series of mount-related cleanups :)
Changes are: - rpc.umntall is called at the right places now in /etc/rc* - rpc.umntall timeout has been lowered from two days (too high) to one - verbose messages in rpc.umntall have been clarified - kill double entries in /var/db/mounttab when rpc.umntall is invoked - ${early_nfs_mounts} has been removed from /etc/rc - patched mount(8) -p to print different pass/dump values for ufs filesystems. (last patch recieved from dan <bugg@bugg.strangled.net>) Submitted by: Martin Blapp <mbr@imp.ch>, dan <bugg@bugg.strangled.net>
Notes
Notes: svn path=/head/; revision=56038
Diffstat (limited to 'sbin/mount/mount.c')
-rw-r--r--sbin/mount/mount.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c
index 14b56c926f69..65bcb5d1f0c6 100644
--- a/sbin/mount/mount.c
+++ b/sbin/mount/mount.c
@@ -709,9 +709,12 @@ putfsent(ent)
printf("\t%u %u\n", fst->fs_freq, fst->fs_passno);
else if ((fst = getfsfile(ent->f_mntonname)))
printf("\t%u %u\n", fst->fs_freq, fst->fs_passno);
- else if (strcmp(ent->f_fstypename, "ufs") == 0)
- printf("\t1 1\n");
- else
+ else if (strcmp(ent->f_fstypename, "ufs") == 0) {
+ if (strcmp(ent->f_mntonname, "/") == 0)
+ printf("\t1 1\n");
+ else
+ printf("\t2 2\n");
+ } else
printf("\t0 0\n");
}