]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: fsync after file rename
authorFilipe Manana <fdmanana@suse.com>
Tue, 23 Aug 2016 20:14:23 +0000 (21:14 +0100)
committerEryu Guan <eguan@redhat.com>
Fri, 26 Aug 2016 07:45:00 +0000 (15:45 +0800)
commit94cec74b78a3175c12656edc8e57578fb68e4fc6
tree422054871fe00d163e1235256378c7857b55bb9c
parentd8fe99a265fae2453c09ac6dedc7daa4c10d31bd
generic: fsync after file rename

Test that if we rename a file, without changing its parent
directory, create a new file that has the old name of the file we
renamed, doing an fsync against the file we renamed works correctly
and after a power failure both files exists.

This is motivated by an issue found in btrfs, introduced in the
linux kernel 4.8-rc2, that caused lockdep to report a deadlock
scenario. The btrfs issue is fixed by the patch titled:

  "Btrfs: fix lockdep warning on deadlock against an inode's log mutex"

Tested against ext3/4, xfs, f2fs and reiserfs as well.

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