]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
fstests: btrfs, add test for snapshoting after file write + truncate
authorFilipe Manana <fdmanana@suse.com>
Mon, 15 Dec 2014 23:50:56 +0000 (10:50 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 15 Dec 2014 23:50:56 +0000 (10:50 +1100)
commit0cfb617c51ae3fbc258e30e7760f57f58db1684d
tree619bc032bea4a93ddc9b74112084e9342857a677
parenta5a2db3aba180628cb18ed39634c1d1c412f0de4
fstests: btrfs, add test for snapshoting after file write + truncate

Regression test for a btrfs issue where if right after the snapshot
creation ioctl started, a file write followed by a file truncate
happened, with both operations increasing the file's size, the created
snapshot would capture an inconsistent state of the file system tree.
That state reflected the file truncation but it didn't reflect the
write operation, and left a gap between two file extent items (and
that gap corresponded to the total or a partial area of the write
operation's range).

This issue was fixed by the following linux kernel patch:

    Btrfs: fix snapshot inconsistency after a file write followed by truncate

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/btrfs/080 [new file with mode: 0755]
tests/btrfs/080.out [new file with mode: 0644]
tests/btrfs/group