aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/mount.h
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2020-08-19 17:09:58 +0000
committerWarner Losh <imp@FreeBSD.org>2020-08-19 17:09:58 +0000
commit08b242aeeed2108767072265833997d1b6ec2098 (patch)
treed369b65ed5bf908e7a669e1a109681aa3f88cd2d /sys/sys/mount.h
parent7eee1720520faaeee2dd91f23092b39f83b89216 (diff)
downloadsrc-08b242aeeed2108767072265833997d1b6ec2098.tar.gz
src-08b242aeeed2108767072265833997d1b6ec2098.zip
Move the mount name to bit mapping into sys/mount.h so it can be shared with the
kernel. Discussed with: kib@ Reviewed by: kirk@ (prior version) Sponsored by: Netflix Diffential Revision: https://reviews.freebsd.org/D25969
Notes
Notes: svn path=/head/; revision=364401
Diffstat (limited to 'sys/sys/mount.h')
-rw-r--r--sys/sys/mount.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/sys/sys/mount.h b/sys/sys/mount.h
index f2ce078f2f81..c14a148fd8d1 100644
--- a/sys/sys/mount.h
+++ b/sys/sys/mount.h
@@ -294,6 +294,45 @@ void __mnt_vnode_markerfree_lazy(struct vnode **mvp, struct mount *mp);
#endif /* _KERNEL */
+#if defined(_WANT_MNTOPTNAMES) || defined(_KERNEL)
+struct mntoptnames {
+ uint64_t o_opt;
+ const char *o_name;
+};
+#define MNTOPT_NAMES \
+ { MNT_ASYNC, "asynchronous" }, \
+ { MNT_EXPORTED, "NFS exported" }, \
+ { MNT_LOCAL, "local" }, \
+ { MNT_NOATIME, "noatime" }, \
+ { MNT_NOEXEC, "noexec" }, \
+ { MNT_NOSUID, "nosuid" }, \
+ { MNT_NOSYMFOLLOW, "nosymfollow" }, \
+ { MNT_QUOTA, "with quotas" }, \
+ { MNT_RDONLY, "read-only" }, \
+ { MNT_SYNCHRONOUS, "synchronous" }, \
+ { MNT_UNION, "union" }, \
+ { MNT_NOCLUSTERR, "noclusterr" }, \
+ { MNT_NOCLUSTERW, "noclusterw" }, \
+ { MNT_SUIDDIR, "suiddir" }, \
+ { MNT_SOFTDEP, "soft-updates" }, \
+ { MNT_SUJ, "journaled soft-updates" }, \
+ { MNT_MULTILABEL, "multilabel" }, \
+ { MNT_ACLS, "acls" }, \
+ { MNT_NFS4ACLS, "nfsv4acls" }, \
+ { MNT_GJOURNAL, "gjournal" }, \
+ { MNT_AUTOMOUNTED, "automounted" }, \
+ { MNT_VERIFIED, "verified" }, \
+ { MNT_UNTRUSTED, "untrusted" }, \
+ { MNT_NOCOVER, "nocover" }, \
+ { MNT_EMPTYDIR, "emptydir" }, \
+ { MNT_UPDATE, "update" }, \
+ { MNT_DELEXPORT, "delexport" }, \
+ { MNT_RELOAD, "reload" }, \
+ { MNT_FORCE, "force" }, \
+ { MNT_SNAPSHOT, "snapshot" }, \
+ { 0, NULL }
+#endif
+
/*
* User specifiable flags, stored in mnt_flag.
*/