generic/527: add additional test including a file with a hardlink
authorFilipe Manana <fdmanana@suse.com>
Mon, 3 Feb 2020 16:19:28 +0000 (16:19 +0000)
committerEryu Guan <guaneryu@gmail.com>
Sun, 9 Feb 2020 14:05:10 +0000 (22:05 +0800)
commitc0679253bc141fe9fe5e9831028a0bf01f29596a
treeeb239b05dcc8c4908ddad8f3440ee4aa19bbcaed
parent61c6d0c30574da51f6e8dc01fca174291ca907ce
generic/527: add additional test including a file with a hardlink

Add a similar test to the existing one but with a file that has a
hardlink as well. This is motivated by a bug found in btrfs where
a fsync on a file that has the old name of another file results
in the logging code to hit an infinite loop. The patch that fixes
the bug in btrfs has the following subject:

  "Btrfs: fix infinite loop during fsync after rename operations"

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/527
tests/generic/527.out