freebsd-skq/bin/dd
Thomas Quinot cd1832fe92 Reorganize the handling all-zeroes terminal block in sparse mode
The intent of the previous code in that case was to force
an explicit write, but the implementation was incorrect, and
as a result the write was never performed. This new implementation
instead uses ftruncate(2) to extend the file with a trailing hole.

Also introduce regression tests for these cases.

PR: 189284
(original PR whose fix introduced this bug)

PR: 207092

Differential Revision:	D5248
Reviewed by:	sobomax,kib
MFC after:	2 weeks
2016-02-18 08:44:16 +00:00
..
tests Integrate contrib/netbsd-tests/bin/dd into the FreeBSD test suite as 2015-10-18 05:49:58 +00:00
args.c Improve comment to reflect recent changes. 2016-02-09 09:38:05 +00:00
conv_tab.c Make dd's signal handler async safe. 2013-05-10 18:43:36 +00:00
conv.c bin/dd: revert 273734, as it fails on 32bit platforms 2014-10-27 17:39:37 +00:00
dd.1 Add 't' and 'p' postfixes to dd(1). 2016-02-04 15:21:01 +00:00
dd.c Reorganize the handling all-zeroes terminal block in sparse mode 2016-02-18 08:44:16 +00:00
dd.h Reorganize the handling all-zeroes terminal block in sparse mode 2016-02-18 08:44:16 +00:00
extern.h Make C_* contants fit in 32 bits again by using 4 unused bits. 2014-04-03 06:32:02 +00:00
gen.c Reorganize the handling all-zeroes terminal block in sparse mode 2016-02-18 08:44:16 +00:00
Makefile Reorganize the handling all-zeroes terminal block in sparse mode 2016-02-18 08:44:16 +00:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00
misc.c Incorporate feedback from bde and jilles regarding r265472 to dd(1). 2014-05-08 19:10:04 +00:00
position.c bin/dd: revert 273734, as it fails on 32bit platforms 2014-10-27 17:39:37 +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