Index: sbin/mount/mount.c =================================================================== --- sbin/mount/mount.c +++ sbin/mount/mount.c @@ -345,6 +345,7 @@ 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, Index: share/man/man5/fstab.5 =================================================================== --- share/man/man5/fstab.5 +++ share/man/man5/fstab.5 @@ -190,6 +190,18 @@ .Xr mount 8 manual page. .Pp +If the option +.Dq update +is specified, it indicates that the status of an already mounted file +system should be changed accordingly. +This allows, for example, file systems mounted read-only to be upgraded +read-write and vice-versa. +By default, an entry corresponding to a file systems that is already +mounted is going to be skipped over when processing +.Nm , unless it's a root file system, in which case logic similar to +.Dq update +is applied automatically. +.Pp The type of the mount is extracted from the .Fa fs_mntops field and stored separately in the