]> git.ipfire.org Git - thirdparty/coreutils.git/commit
dd: support iflag=direct with arbitrary sized files
authorPádraig Brady <P@draigBrady.com>
Mon, 16 Oct 2017 06:54:29 +0000 (23:54 -0700)
committerPádraig Brady <P@draigBrady.com>
Sat, 25 Nov 2017 00:28:57 +0000 (16:28 -0800)
commit5f02cddc184a55b47d2b27c50c25d093d35ce13a
treed428e57e3553a098f1402a933eda89c80fc7edab
parent559c7a57c73d619bbf68b2f6176bed0801d9716c
dd: support iflag=direct with arbitrary sized files

* src/dd.c (iread): Handle read error with a non-aligned
file offset in the O_DIRECT case.  This is not an issue
on XFS at least, but on EXT4 the final read will return
EINVAL rather than the expected 0 to indicate EOF.
* tests/dd/direct.sh: Test the iflag=direct case also.
* NEWS: Mention the improvement.
NEWS
src/dd.c
tests/dd/direct.sh