summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-05-12 23:39:15 +0000
committerdg <dg@FreeBSD.org>1995-05-12 23:39:15 +0000
commit80e3b4e2e240fb9e5122342a331a95f9588832c7 (patch)
tree844ccdf7ba058709be8b5f5a60b694aaaa09e760 /sbin
parente6b57c33e6a9fb351159f1716b81f1a2cbc3102e (diff)
downloadFreeBSD-src-80e3b4e2e240fb9e5122342a331a95f9588832c7.zip
FreeBSD-src-80e3b4e2e240fb9e5122342a331a95f9588832c7.tar.gz
Fix force flag: It is not a "negative" flag. Add MNT_FORCE to the acceptable
options for UFS (which fixes another bug).
Diffstat (limited to 'sbin')
-rw-r--r--sbin/mount/mntopts.h2
-rw-r--r--sbin/mount/mount_ufs.c1
-rw-r--r--sbin/mount_ifs/mntopts.h2
-rw-r--r--sbin/mount_ifs/mount_ufs.c1
4 files changed, 4 insertions, 2 deletions
diff --git a/sbin/mount/mntopts.h b/sbin/mount/mntopts.h
index ba792fa..0e7ab24 100644
--- a/sbin/mount/mntopts.h
+++ b/sbin/mount/mntopts.h
@@ -54,7 +54,7 @@ struct mntopt {
#define MOPT_GQUOTA { "groupquota", 0, 0, 0 }
/* Control flags. */
-#define MOPT_FORCE { "force", 1, MNT_FORCE, 0 }
+#define MOPT_FORCE { "force", 0, MNT_FORCE, 0 }
#define MOPT_UPDATE { "update", 0, MNT_UPDATE, 0 }
/* Support for old-style "ro", "rw" flags. */
diff --git a/sbin/mount/mount_ufs.c b/sbin/mount/mount_ufs.c
index 48be222..500a977 100644
--- a/sbin/mount/mount_ufs.c
+++ b/sbin/mount/mount_ufs.c
@@ -59,6 +59,7 @@ static struct mntopt mopts[] = {
MOPT_STDOPTS,
MOPT_ASYNC,
MOPT_SYNC,
+ MOPT_FORCE,
MOPT_UPDATE,
MOPT_UQUOTA,
MOPT_GQUOTA,
diff --git a/sbin/mount_ifs/mntopts.h b/sbin/mount_ifs/mntopts.h
index ba792fa..0e7ab24 100644
--- a/sbin/mount_ifs/mntopts.h
+++ b/sbin/mount_ifs/mntopts.h
@@ -54,7 +54,7 @@ struct mntopt {
#define MOPT_GQUOTA { "groupquota", 0, 0, 0 }
/* Control flags. */
-#define MOPT_FORCE { "force", 1, MNT_FORCE, 0 }
+#define MOPT_FORCE { "force", 0, MNT_FORCE, 0 }
#define MOPT_UPDATE { "update", 0, MNT_UPDATE, 0 }
/* Support for old-style "ro", "rw" flags. */
diff --git a/sbin/mount_ifs/mount_ufs.c b/sbin/mount_ifs/mount_ufs.c
index 48be222..500a977 100644
--- a/sbin/mount_ifs/mount_ufs.c
+++ b/sbin/mount_ifs/mount_ufs.c
@@ -59,6 +59,7 @@ static struct mntopt mopts[] = {
MOPT_STDOPTS,
MOPT_ASYNC,
MOPT_SYNC,
+ MOPT_FORCE,
MOPT_UPDATE,
MOPT_UQUOTA,
MOPT_GQUOTA,
OpenPOWER on IntegriCloud