[Bug 2132150] Re: dd: O_DIRECT partial block writes fail
Julian Andres Klode
2132150 at bugs.launchpad.net
Tue Dec 2 10:07:46 UTC 2025
** Bug watch added: github.com/uutils/coreutils/issues #9003
https://github.com/uutils/coreutils/issues/9003
** Also affects: rust-coreutils via
https://github.com/uutils/coreutils/issues/9003
Importance: Unknown
Status: Unknown
** Changed in: rust-coreutils (Ubuntu)
Status: New => In Progress
** Changed in: rust-coreutils (Ubuntu)
Importance: Undecided => High
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rust-coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/2132150
Title:
dd: O_DIRECT partial block writes fail
Status in rust-coreutils:
Unknown
Status in rust-coreutils package in Ubuntu:
In Progress
Bug description:
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 at test:~# for run in {1..25087}; do echo -n -e '\x42' >> test_direct_input.iso; done
root at 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
To manage notifications about this bug go to:
https://bugs.launchpad.net/rust-coreutils/+bug/2132150/+subscriptions
More information about the foundations-bugs
mailing list