]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs: add test for fsync after snapshot deletion
authorFilipe Manana <fdmanana@suse.com>
Tue, 5 Apr 2016 01:45:12 +0000 (11:45 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 5 Apr 2016 01:45:12 +0000 (11:45 +1000)
commit4548a76e89353de8721f0077a91cac781e0ecccc
tree84f62d9dfb1b143341bbef89cdbf47e2a56e2f03
parent3bc4c5895c977c44a9e9bc29296a2f1b679c2fc7
btrfs: add test for fsync after snapshot deletion

Test that if we delete a snapshot, delete its parent directory, create
another directory with the same name as that parent and then fsync either
the new directory or a file inside the new directory, the fsync succeeds,
the fsync log is replayable and produces a correct result.

This is motivated by a bug that is fixed by the following patch for
btrfs (linux kernel):

  Btrfs: fix unreplayable log after snapshot deletion and parent
  re-creation

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/btrfs/120 [new file with mode: 0755]
tests/btrfs/120.out [new file with mode: 0644]
tests/btrfs/group