summaryrefslogtreecommitdiffstats
path: root/sbin/mount_ffs
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>2000-06-17 20:23:24 +0000
committerniklas <niklas@openbsd.org>2000-06-17 20:23:24 +0000
commit4c51ec19e54b159fb42f3f1637b38f3cf017ae02 (patch)
tree3cc0242e49e750bbb3a3c40c9d74c51f7b4e359e /sbin/mount_ffs
parentpr 772; -u blocks chmod command, michaels@inet.no (diff)
downloadwireguard-openbsd-4c51ec19e54b159fb42f3f1637b38f3cf017ae02.tar.xz
wireguard-openbsd-4c51ec19e54b159fb42f3f1637b38f3cf017ae02.zip
Support the -f flag in order to mount dirty filesystems. This makes sense
with soft-updates, but will leak free blocks. On non-softupdates filesystems this option is strongly unrecommended. It also allows downgrades to readonly by revoking files opened for writing. If the filesystem have mmap'ed files writeable this is dangerous. Thus, we do *not* recommend its use!
Diffstat (limited to 'sbin/mount_ffs')
-rw-r--r--sbin/mount_ffs/mount_ffs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/mount_ffs/mount_ffs.c b/sbin/mount_ffs/mount_ffs.c
index ff6b53e5d8c..bec6c0cef61 100644
--- a/sbin/mount_ffs/mount_ffs.c
+++ b/sbin/mount_ffs/mount_ffs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount_ffs.c,v 1.9 2000/01/22 20:25:01 deraadt Exp $ */
+/* $OpenBSD: mount_ffs.c,v 1.10 2000/06/17 20:23:24 niklas Exp $ */
/* $NetBSD: mount_ffs.c,v 1.3 1996/04/13 01:31:19 jtc Exp $ */
/*-
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)mount_ufs.c 8.2 (Berkeley) 3/27/94";
#else
-static char rcsid[] = "$OpenBSD: mount_ffs.c,v 1.9 2000/01/22 20:25:01 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: mount_ffs.c,v 1.10 2000/06/17 20:23:24 niklas Exp $";
#endif
#endif /* not lint */
@@ -68,6 +68,7 @@ static const struct mntopt mopts[] = {
MOPT_SYNC,
MOPT_UPDATE,
MOPT_RELOAD,
+ MOPT_FORCE,
{ NULL }
};