aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/mount
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2019-07-22 20:04:55 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2019-07-22 20:04:55 +0000
commit634add3c8d08b6e6f49b54baf8b672142173b35f (patch)
tree9b3b5aedfc331d6d5bba5fb51d1c64d098e7b304 /sbin/mount
parent4f6d74c9c4550137138d2d9c7620961aee0464fd (diff)
downloadsrc-634add3c8d08b6e6f49b54baf8b672142173b35f.tar.gz
src-634add3c8d08b6e6f49b54baf8b672142173b35f.zip
Allow "update" option to be used in the fstab(5). Document possible use case.
Approved by: mckusick MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D18586
Notes
Notes: svn path=/head/; revision=350224
Diffstat (limited to 'sbin/mount')
-rw-r--r--sbin/mount/mount.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c
index 3f35baccce22..102e87009b0f 100644
--- a/sbin/mount/mount.c
+++ b/sbin/mount/mount.c
@@ -361,6 +361,7 @@ main(int argc, char *argv[])
else
failok = 0;
if (!(init_flags & MNT_UPDATE) &&
+ !hasopt(fs->fs_mntops, "update") &&
ismounted(fs, mntbuf, mntsize))
continue;
options = update_options(options, fs->fs_mntops,