aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/mount.h
diff options
context:
space:
mode:
authorStephen J. Kiernan <stevek@FreeBSD.org>2017-05-31 21:18:11 +0000
committerStephen J. Kiernan <stevek@FreeBSD.org>2017-05-31 21:18:11 +0000
commit9a81ba0f241a477b92f3ae3b48429a04724459f2 (patch)
treee4600b82a37dff45691a2d569c138a8e88294049 /sys/sys/mount.h
parent9a83b0971e6fc935a65feee3b0e2407a89ccc4bd (diff)
downloadsrc-9a81ba0f241a477b92f3ae3b48429a04724459f2.tar.gz
src-9a81ba0f241a477b92f3ae3b48429a04724459f2.zip
Add MD_VERIFY option to enable O_VERIFY in open for vnode type.
Add -o [no]verify option to mdconfig (and document in man page.) Implement GEOM attribute MNT::verified to ask md if the backing vnode is verified. Check for MNT::verified in cd9660 mount to flag the mount as MNT_VERIFIED if the underlying device has been verified. Reviewed by: rwatson Approved by: sjg (mentor) Obtained from: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D2902
Notes
Notes: svn path=/head/; revision=319358
Diffstat (limited to 'sys/sys/mount.h')
-rw-r--r--sys/sys/mount.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/mount.h b/sys/sys/mount.h
index 519b4cf94f52..152b2586153c 100644
--- a/sys/sys/mount.h
+++ b/sys/sys/mount.h
@@ -314,6 +314,7 @@ void __mnt_vnode_markerfree_active(struct vnode **mvp, struct mount *);
#define MNT_ROOTFS 0x0000000000004000ULL /* identifies the root fs */
#define MNT_USER 0x0000000000008000ULL /* mounted by a user */
#define MNT_IGNORE 0x0000000000800000ULL /* do not show entry in df */
+#define MNT_VERIFIED 0x0000000400000000ULL /* filesystem is verified */
/*
* Mask of flags that are visible to statfs().
@@ -329,7 +330,7 @@ void __mnt_vnode_markerfree_active(struct vnode **mvp, struct mount *);
MNT_NOCLUSTERW | MNT_SUIDDIR | MNT_SOFTDEP | \
MNT_IGNORE | MNT_EXPUBLIC | MNT_NOSYMFOLLOW | \
MNT_GJOURNAL | MNT_MULTILABEL | MNT_ACLS | \
- MNT_NFS4ACLS | MNT_AUTOMOUNTED)
+ MNT_NFS4ACLS | MNT_AUTOMOUNTED | MNT_VERIFIED)
/* Mask of flags that can be updated. */
#define MNT_UPDATEMASK (MNT_NOSUID | MNT_NOEXEC | \