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>
This commit is contained in:
Nicholas Clark
2018-01-25 19:00:19 +01:00
committed by Denys Vlasenko
parent 043be55691
commit 77a6678c42
2 changed files with 26 additions and 12 deletions

View File

@@ -178,9 +178,10 @@ dd POSIX options:
conv=noerror | yes | |
conv=notrunc | yes | |
conv=sync | yes | |
dd compatibility options:
conv=fsync | yes | |
iflag=skip_bytes| yes | |
dd Busybox specific options:
conv=fsync
iflag=fullblock | yes | |
df POSIX options
option | exists | compliant | remarks