generic: test on creating new file after log replay
authorLiu Bo <bo.li.liu@oracle.com>
Sat, 10 Mar 2018 23:56:04 +0000 (16:56 -0700)
committerEryu Guan <guaneryu@gmail.com>
Fri, 16 Mar 2018 08:30:52 +0000 (16:30 +0800)
commit2fcd134d393972815739e8c025e45e20f7a4ebe7
tree1221f840e88e6400075559b6f68c2ef9997b2df8
parent640e4f6d7ae3ac930ff2f569098c43dfb6d3b532
generic: test on creating new file after log replay

The regression is introduced to btrfs in linux v4.4 and it refuses to
create new files after log replay by returning -EEXIST.

Although the problem is on btrfs only, there is no btrfs stuff in terms
of test, so this makes it generic.

The kernel fix is
  Btrfs: fix unexpected -EEXIST when creating new inode

[Eryu: add _require_metadata_journaling rule and 'log' 'metadata' group]

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