freebsd-nq/bin/dd
Matt Macy b52c534bff Add iflag=fullblock to dd
Normally, count=n means read(2) will be called n times on the input to dd. If
the read() returns short, as may happen when reading from a pipe, fewer bytes
will be copied from the input. With conv=sync the buffer is padded with zeros
to fill the rest of the block.

iflag=fullblock causes dd to continue reading until the block is full, so that
count=n means n full blocks are copied. This flag is compatible with illumos
and GNU dd and is used in the ZFS test suite.

Submitted by:	Ryan Moeller
Reviewed by:	manpages, mmacy@
MFC after:	1 week
Sponsored by:	 iXsystems, Inc.
Differential Revision:	https://reviews.freebsd.org/D21441
2019-09-30 22:00:48 +00:00
..
tests Remove unnecessary make logic added in r319339 2017-07-18 17:29:12 +00:00
args.c Add iflag=fullblock to dd 2019-09-30 22:00:48 +00:00
conv_tab.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
conv.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
dd.1 Add iflag=fullblock to dd 2019-09-30 22:00:48 +00:00
dd.c Add iflag=fullblock to dd 2019-09-30 22:00:48 +00:00
dd.h Add iflag=fullblock to dd 2019-09-30 22:00:48 +00:00
extern.h Add conv=fdatasync flag to dd 2019-09-30 21:48:12 +00:00
gen.c Reorganize the handling all-zeroes terminal block in sparse mode 2016-02-18 08:44:16 +00:00
Makefile dd: Incorporate some changes from imp for status=progress 2018-08-15 19:46:13 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
misc.c dd(1): Correct padding in status=progress 2018-09-13 14:54:46 +00:00
position.c dd: Incorporate some changes from imp for status=progress 2018-08-15 19:46:13 +00:00
ref.ascii
ref.ebcdic
ref.ibm
ref.lcase
ref.obs_zeroes Reorganize the handling all-zeroes terminal block in sparse mode 2016-02-18 08:44:16 +00:00
ref.oldascii
ref.oldebcdic
ref.oldibm
ref.pareven
ref.parnone
ref.parodd
ref.parset
ref.swab
ref.ucase