]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: test fsync after succession of file renames
authorFilipe Manana <fdmanana@suse.com>
Tue, 12 Feb 2019 18:08:07 +0000 (18:08 +0000)
committerEryu Guan <guaneryu@gmail.com>
Sat, 16 Feb 2019 10:17:25 +0000 (18:17 +0800)
commit31603fea808316b561d28bdd8d326bcb3d2a1007
treeca0560e58d96402b0227835623e90965ba6559a7
parent0177f3c4588313954ff21ea0017d607a23286e1c
generic: test fsync after succession of file renames

Test that after a combination of file renames, linking and creating
a new file with the old name of a renamed file, if we fsync the new
file, after a power failure we are able to mount the filesystem and
all file names correspond to the correct inodes.

This test is motivated by a bug found in btrfs which is fixed by a
patch for the linux kernel titled:

  "Btrfs: fix fsync after succession of renames of different files"

The test passes on ext4, xfs and patched btrfs, however at least in
a 5.0-rc5 linux kernel, it fails on f2fs.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/526 [new file with mode: 0755]
tests/generic/526.out [new file with mode: 0644]
tests/generic/group