Closed JohnRTitor closed 2 months ago
I'll need a real log, or something to go off of...
I can reproduce this bug by doing this:
$ rm -f test_file
$ truncate --size=1MiB test_file
$ truncate --size=+1 test_file
$ shred --exact --iterations=2 test_file
shred: test_file: error writing at offset 1048576
$
That being said, I don’t really know if this is a bcachefs bug or a Coreutils bug.
strace shows that it's doing a misaligned DIO write - we were failing to return an error in that case.
Fixed by a316668abbf2
As reported in https://github.com/NixOS/nixpkgs/issues/306760 and https://github.com/NixOS/nixpkgs/issues/313700
shred-exact
test of coreutils is failing onbcachefs
filesystem.Relevant log:
CC: @jcaesar @Jayman2000