dd
fails on gnu test tests/dd/direct.sh
- dynamic removal of O_DIRECT
missing
#6078
Labels
dd
fails on gnu test tests/dd/direct.sh
- dynamic removal of O_DIRECT
missing
#6078
I started fixing remaining issues from the GNU test suite that are related to dd as this was the last util I was working on.
I investigated what the issue is by manual tests and using
strace
.Summary:
The test tries to do file copy with the
direct
input and output mode.direct
mode is special as it has some restrictions regarding the buffer locations and its size:While a
direct
read apparently succeds in the case when it reads the last chunk from a file that is irregularily sized,a
direct
write fails if we try to write a buffer that doesn't match the blocksize.I used
strace
to figure out how GNU is solving it.Aparently it gets rid of the
O_DIRECT
status flag before writing the last chunk by using thefcntl
system call.GNU:
uutils:
I'm alread working on a solution
The text was updated successfully, but these errors were encountered: