summaryrefslogtreecommitdiff
path: root/sbin/mount/mntopts.h
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2004-07-05 18:33:39 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2004-07-05 18:33:39 +0000
commit4eb2af6569228a4b2b84c10922ff2f1b3a6dc328 (patch)
tree3b28b65fdd2d22e3be1a79bfffada54ea4ea2dc9 /sbin/mount/mntopts.h
parent4335c644e6bae68c48074b1e650afdcb454fdaf9 (diff)
userquota and groupquota _optionally_ have a value.
ok pedro@ millert@
Diffstat (limited to 'sbin/mount/mntopts.h')
-rw-r--r--sbin/mount/mntopts.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/sbin/mount/mntopts.h b/sbin/mount/mntopts.h
index 8551b1cd86f..64ab51aca99 100644
--- a/sbin/mount/mntopts.h
+++ b/sbin/mount/mntopts.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mntopts.h,v 1.13 2004/06/22 21:12:00 otto Exp $ */
+/* $OpenBSD: mntopts.h,v 1.14 2004/07/05 18:33:38 otto Exp $ */
/* $NetBSD: mntopts.h,v 1.3 1995/03/18 14:56:59 cgd Exp $ */
/*-
@@ -37,6 +37,7 @@
0 => return flag */
#define MFLAG_STRVAL 0x04 /* option needs a string value */
#define MFLAG_INTVAL 0x08 /* option needs an int value */
+#define MFLAG_OPT 0x10 /* value is optional */
struct mntopt {
const char *m_option; /* option name */
@@ -60,8 +61,10 @@ union mntval {
#define MOPT_RDONLY { "rdonly", MNT_RDONLY, MFLAG_SET }
#define MOPT_SYNC { "sync", MNT_SYNCHRONOUS, MFLAG_SET }
#define MOPT_UNION { "union", MNT_UNION, MFLAG_SET }
-#define MOPT_USERQUOTA { "userquota", 0, MFLAG_SET }
-#define MOPT_GROUPQUOTA { "groupquota", 0, MFLAG_SET }
+#define MOPT_USERQUOTA { "userquota", 0, MFLAG_SET | MFLAG_STRVAL \
+ | MFLAG_OPT }
+#define MOPT_GROUPQUOTA { "groupquota", 0, MFLAG_SET | MFLAG_STRVAL \
+ | MFLAG_OPT }
#define MOPT_SOFTDEP { "softdep", MNT_SOFTDEP, MFLAG_SET }
/* Control flags. */