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>
This commit is contained in:
Filipe Manana
2016-02-19 10:50:32 +11:00
committed by Dave Chinner
parent 08aac973d5
commit 180cb85a74
3 changed files with 89 additions and 0 deletions
+1
View File
@@ -118,3 +118,4 @@
115 auto qgroup
116 auto quick metadata
117 auto quick send clone
118 auto quick snapshot metadata