Files
apfstests/tests/generic/483.out
T
Filipe Manana 858c39281e generic: test for fsync after fallocate
Test that fsync operations preserve extents allocated with
fallocate(2) that are placed beyond a file's size.

This test is motivated by a bug found in btrfs where unwritten
extents beyond the inode's i_size were not preserved after a fsync
and power failure. The btrfs bug is fixed by the following patch for
the linux kernel:

 "Btrfs: fix loss of prealloc extents past i_size after fsync log replay"

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
2018-04-13 00:05:05 +08:00

14 lines
205 B
Plaintext

QA output created by 483
File foo fiemap:
0: [0..2559]: extent
File foo size:
262144
File bar fiemap:
0: [0..2559]: extent
File bar size:
262144
File baz fiemap:
0: [0..6143]: extent
File baz size:
262144