dd: add 'fullblock' iflag
authorNicholas Clark <nicholas.clark@gmail.com>
Thu, 25 Jan 2018 18:00:19 +0000 (19:00 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 25 Jan 2018 18:00:19 +0000 (19:00 +0100)
commit77a6678c427db5ea15d6d0005a579f441277df06
tree3dc09cfe78a10443d20ce3d35dac71b9101fc34d
parent043be556916ab0fbbece9d406cef199d397f8455
dd: add 'fullblock' iflag

Adds a fullblock iflag for improved compatibility with GNU dd.
The new iflag can be used to ensure that dd calls retrieve the
expected amount of data when reading from pipes or unusual
filesystems.

function                                             old     new   delta
packed_usage                                       32249   32334     +85
dd_main                                             1582    1632     +50
static.iflag_words                                    12      22     +10
------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 145/0)             Total: 145 bytes

Signed-off-by: Nicholas Clark <nicholas.clark@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/dd.c
docs/posix_conformance.txt