btrfs: log replay after fsync of file with prealloc extents beyond eof
authorFilipe Manana <fdmanana@suse.com>
Thu, 17 Feb 2022 12:14:21 +0000 (12:14 +0000)
committerEryu Guan <guaneryu@gmail.com>
Sun, 20 Feb 2022 17:08:59 +0000 (01:08 +0800)
commit41e691e469f7db212f2fc8b800706e16117ae761
tree35628f55c325fbe9a8da02e79e0f679277be2f00
parent96b95682588f8e785579be57c80f5b1d5b2ed8ed
btrfs: log replay after fsync of file with prealloc extents beyond eof

Test that after a full fsync of a file with preallocated extents
beyond the file's size, if a power failure happens, the preallocated
extents still exist after we mount the filesystem.

This test currently fails and there is a patch for btrfs that fixes
this issue and has the following subject:

  "btrfs: fix lost prealloc extents beyond eof after full fsync"

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/btrfs/261 [new file with mode: 0755]
tests/btrfs/261.out [new file with mode: 0644]