btrfs: test directory fsync after deleting snapshots
authorFilipe Manana <fdmanana@suse.com>
Thu, 18 Feb 2016 23:50:32 +0000 (10:50 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 18 Feb 2016 23:50:32 +0000 (10:50 +1100)
commit180cb85a74ea6b58e64ba66a8ffd0dd22f443356
treebacd8a4e9b9ca2758ef328eac7f1f73b9ece800b
parent08aac973d5991d8bcbc64125bdd71e9af00424f1
btrfs: test directory fsync after deleting snapshots

Test that if we fsync a directory that had a snapshot entry in it that
was deleted and crash, the next time we mount the filesystem, the log
replay procedure will not fail and the snapshot is not present anymore.

This issue is fixed by the following patch for the linux kernel:

  "Btrfs: fix unreplayable log after snapshot delete + parent dir fsync"

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Tested-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/btrfs/118 [new file with mode: 0755]
tests/btrfs/118.out [new file with mode: 0644]
tests/btrfs/group