aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/mdioctl.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/mdioctl.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/mdioctl.h')
-rw-r--r--sys/sys/mdioctl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/mdioctl.h b/sys/sys/mdioctl.h
index 4974cf84e8ba..9a7642923ccd 100644
--- a/sys/sys/mdioctl.h
+++ b/sys/sys/mdioctl.h
@@ -88,5 +88,6 @@ struct md_ioctl {
#define MD_COMPRESS 0x10 /* Compression mode */
#define MD_FORCE 0x20 /* Don't try to prevent foot-shooting */
#define MD_ASYNC 0x40 /* Asynchronous mode */
+#define MD_VERIFY 0x80 /* Open file with O_VERIFY (vnode only) */
#endif /* _SYS_MDIOCTL_H_*/