diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2000-06-17 20:23:25 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2000-06-17 20:23:25 +0000 |
commit | b12347c7401e730593586ffb0a6fcae647c52f93 (patch) | |
tree | b511f0769a5b5e40c0aef777536dcbc50187a2b9 /sbin | |
parent | f84e735ae2aa8516c20af6c27a7808cdd02506d9 (diff) |
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')
-rw-r--r-- | sbin/mount_ffs/mount_ffs.c | 5 |
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 } }; |