summaryrefslogtreecommitdiffstats
path: root/sbin/mount
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-08-26 05:39:53 +0000
committerdg <dg@FreeBSD.org>1995-08-26 05:39:53 +0000
commitd28bf0579f66a4d927db9ffd520ea05d18d9c56f (patch)
tree14661357918d597c85dcb800dfc6c50545f4d9c6 /sbin/mount
parentb87f24347cfdd195bc2e0e04f51487eae037c584 (diff)
downloadFreeBSD-src-d28bf0579f66a4d927db9ffd520ea05d18d9c56f.zip
FreeBSD-src-d28bf0579f66a4d927db9ffd520ea05d18d9c56f.tar.gz
The changes for adding the "noauto" option were mostly wrong. MNT_NOAUTO
is a kernel flag, and the kernel definately doesn't need to know about it.
Diffstat (limited to 'sbin/mount')
-rw-r--r--sbin/mount/mntopts.h2
-rw-r--r--sbin/mount/mount.85
-rw-r--r--sbin/mount/mount.c9
3 files changed, 5 insertions, 11 deletions
diff --git a/sbin/mount/mntopts.h b/sbin/mount/mntopts.h
index 84e2943..710b557 100644
--- a/sbin/mount/mntopts.h
+++ b/sbin/mount/mntopts.h
@@ -42,7 +42,7 @@ struct mntopt {
/* User-visible MNT_ flags. */
#define MOPT_ASYNC { "async", 0, MNT_ASYNC, 0 }
-#define MOPT_NOAUTO { "auto", 1, MNT_NOAUTO, 0 }
+#define MOPT_NOAUTO { "auto", 1, 0, 0 }
#define MOPT_NODEV { "dev", 1, MNT_NODEV, 0 }
#define MOPT_NOEXEC { "exec", 1, MNT_NOEXEC, 0 }
#define MOPT_NOSUID { "suid", 1, MNT_NOSUID, 0 }
diff --git a/sbin/mount/mount.8 b/sbin/mount/mount.8
index 29a675d..7be6e13 100644
--- a/sbin/mount/mount.8
+++ b/sbin/mount/mount.8
@@ -108,11 +108,6 @@ The same as
forces the revocation of write access when trying to downgrade
a filesystem mount status from read-write to read-only. Also
forces the R/W mount of an unclean filesystem (dangerous; use with caution).
-.It noauto
-Do not attempt to mount this filesystem when the
-.Fl a
-flag is specified. This allows you to have mount entries that can
-be invoked manually when needed, but not before.
.It nodev
Do not interpret character or block special devices on the file system.
This option is useful for a server that has file systems containing
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c
index bcf65a3..cf05d3f 100644
--- a/sbin/mount/mount.c
+++ b/sbin/mount/mount.c
@@ -84,7 +84,6 @@ static struct opt {
{ MNT_ASYNC, "asynchronous" },
{ MNT_EXPORTED, "NFS exported" },
{ MNT_LOCAL, "local" },
- { MNT_NOAUTO, "noauto" },
{ MNT_NODEV, "nodev" },
{ MNT_NOEXEC, "noexec" },
{ MNT_NOSUID, "nosuid" },
@@ -167,12 +166,12 @@ main(argc, argv)
continue;
if (badvfsname(fs->fs_vfstype, vfslist))
continue;
- if (!strstr(fs->fs_mntops, "noauto")) {
+ if (strstr(fs->fs_mntops, "noauto"))
+ continue;
if (mountfs(fs->fs_vfstype, fs->fs_spec,
- fs->fs_file, init_flags, options,
- fs->fs_mntops))
+ fs->fs_file, init_flags, options,
+ fs->fs_mntops))
rval = 1;
- }
}
else {
if ((mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0)
OpenPOWER on IntegriCloud