Add oflag=fsync and oflag=sync capability to dd
authorMatt Macy <mmacy@FreeBSD.org>
Mon, 30 Sep 2019 21:56:42 +0000 (21:56 +0000)
committerMatt Macy <mmacy@FreeBSD.org>
Mon, 30 Sep 2019 21:56:42 +0000 (21:56 +0000)
commit919156e34c859f4690eff7af344c76cfbe6e8a64
tree42cd7c0af218c863b8582d41fbe2ad8b9ed227d5
parent2048fe709808fc2658de070dd3ad98659508b041
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
bin/dd/args.c
bin/dd/dd.1
bin/dd/dd.c
bin/dd/dd.h