aboutsummaryrefslogtreecommitdiff
path: root/bin/dd/dd.h
diff options
context:
space:
mode:
authorMatt Macy <mmacy@FreeBSD.org>2019-09-03 18:35:55 +0000
committerMatt Macy <mmacy@FreeBSD.org>2019-09-03 18:35:55 +0000
commitce1b19d8c8d160353397ced6a971cc5126da8867 (patch)
tree2b8a7fb221bd7b887be606c22f200eab2294d4a2 /bin/dd/dd.h
parentaef64c62c2a6a059e175b3a8b57a61aa4f3f2db8 (diff)
downloadsrc-ce1b19d8c8d160353397ced6a971cc5126da8867.tar.gz
src-ce1b19d8c8d160353397ced6a971cc5126da8867.zip
Add conv=fsync flag to dd
The fsync flag performs an fsync(2) on the output file before closing it. This will be useful for the ZFS test suite. Submitted by: ryan@ixsystems.com Reviewed by: jilles@, imp@ MFC after: 1 week Sponsored by: iXsystems, Inc.
Notes
Notes: svn path=/head/; revision=351770
Diffstat (limited to 'bin/dd/dd.h')
-rw-r--r--bin/dd/dd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/dd/dd.h b/bin/dd/dd.h
index 8090252923fd..8c01cb4d17cc 100644
--- a/bin/dd/dd.h
+++ b/bin/dd/dd.h
@@ -101,6 +101,7 @@ typedef struct {
#define C_NOXFER 0x10000000
#define C_NOINFO 0x20000000
#define C_PROGRESS 0x40000000
+#define C_FSYNC 0x80000000
#define C_PARITY (C_PAREVEN | C_PARODD | C_PARNONE | C_PARSET)