aboutsummaryrefslogtreecommitdiff
path: root/bin/dd/dd.h
diff options
context:
space:
mode:
authorMatt Macy <mmacy@FreeBSD.org>2019-09-30 21:56:42 +0000
committerMatt Macy <mmacy@FreeBSD.org>2019-09-30 21:56:42 +0000
commit919156e34c859f4690eff7af344c76cfbe6e8a64 (patch)
tree42cd7c0af218c863b8582d41fbe2ad8b9ed227d5 /bin/dd/dd.h
parent2048fe709808fc2658de070dd3ad98659508b041 (diff)
downloadsrc-919156e34c859f4690eff7af344c76cfbe6e8a64.tar.gz
src-919156e34c859f4690eff7af344c76cfbe6e8a64.zip
Add oflag=fsync and oflag=sync capability to dd
Sets the O_FSYNC flag on the output file. oflag=fsync and oflag=sync are synonyms just as O_FSYNC and O_SYNC are synonyms. This functionality is intended to improve portability of dd commands in the ZFS test suite. Submitted by: Ryan Moeller Reviewed by: manpages, mmacy@ MFC after: 1 week Sponsored by: iXsytems, Inc. Differential Revision: https://reviews.freebsd.org/D21422
Notes
Notes: svn path=/head/; revision=352922
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 a255a5970e52..893e9965e8d3 100644
--- a/bin/dd/dd.h
+++ b/bin/dd/dd.h
@@ -103,6 +103,7 @@ typedef struct {
#define C_PROGRESS 0x0000000040000000ULL
#define C_FSYNC 0x0000000080000000ULL
#define C_FDATASYNC 0x0000000100000000ULL
+#define C_OFSYNC 0x0000000200000000ULL
#define C_PARITY (C_PAREVEN | C_PARODD | C_PARNONE | C_PARSET)