aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount_ifs/mount.c
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1995-08-23 12:59:27 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1995-08-23 12:59:27 +0000
commit81b9534dc5bb04c79a0aa03afa6d05b1ee0fc921 (patch)
tree340d104ae478f6cf31ab003881353caef1608de4 /sbin/mount_ifs/mount.c
parent215b0e62d5e6324dcf37922f17bf728a1025a4b8 (diff)
downloadsrc-81b9534dc5bb04c79a0aa03afa6d05b1ee0fc921.tar.gz
src-81b9534dc5bb04c79a0aa03afa6d05b1ee0fc921.zip
Add a "noauto" flag so that you can do things like prevent your system
from not coming up multiuser just because you have a CD mount in fstab but no CD in the drive. Submitted by: "Full Name Not Supplied" <simon@masi.ibp.fr>
Notes
Notes: svn path=/head/; revision=10199
Diffstat (limited to 'sbin/mount_ifs/mount.c')
-rw-r--r--sbin/mount_ifs/mount.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sbin/mount_ifs/mount.c b/sbin/mount_ifs/mount.c
index 2121ae11d0eb..bcf65a3430cb 100644
--- a/sbin/mount_ifs/mount.c
+++ b/sbin/mount_ifs/mount.c
@@ -84,6 +84,7 @@ 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" },
@@ -166,10 +167,12 @@ main(argc, argv)
continue;
if (badvfsname(fs->fs_vfstype, vfslist))
continue;
+ if (!strstr(fs->fs_mntops, "noauto")) {
if (mountfs(fs->fs_vfstype, fs->fs_spec,
- fs->fs_file, init_flags, options,
- fs->fs_mntops))
- rval = 1;
+ fs->fs_file, init_flags, options,
+ fs->fs_mntops))
+ rval = 1;
+ }
}
else {
if ((mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0)