Public bug reported:

In the rust-coreutils versions currently in the archive, dd fails to
write partial blocks with the O_DIRECT flag. This is currently causing
autopkgtest failures for packages such as cryptsetup.

This issue is known upstream[1] and has been fixed in rust-coreutils
0.4.0[2].

Upgrading rust-coreutils to 0.4.0 will fix this bug.

================
Bug reproduction
================
Create a file with a size that's not a multiple of block size (3 8K blocks + 
511 bytes):

root@test:~# for run in {1..25087}; do echo -n -e '\x42' >> 
test_direct_input.iso; done
root@test:~# dd if=/root/test_direct_input.iso of=/root/test_direct_output.img 
oflag=direct bs=8192 status=none
dd: IO error: Invalid input

This bug is reproducible for rust-coreutils 0.2.2 and 0.3.0.

[1]: https://github.com/uutils/coreutils/issues/9003
[2]: https://github.com/uutils/coreutils/pull/9016

** Affects: rust-coreutils (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: update-excuse

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2132150

Title:
  dd: O_DIRECT partial block writes fail

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2132150/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to