overlay: test creating lower hardlinks for copied up files
authorAmir Goldstein <amir73il@gmail.com>
Mon, 30 Oct 2017 12:06:56 +0000 (14:06 +0200)
committerEryu Guan <eguan@redhat.com>
Fri, 3 Nov 2017 11:04:49 +0000 (19:04 +0800)
commit5f49f15cf49686f99ecde154af42bc297ec8ce4f
treeaa9eef69f645402a496588745e8f823eb93a13e4
parent36ea1258684bcf0c6001493ca2f3b482dc4f6610
overlay: test creating lower hardlinks for copied up files

kernel v4.13 introduced the index=on feature for not breaking
hardlinks on copy-up.  With the index feature enabled a regression
was introduced - lower files that are hardlined while overlay is
offline can result in lookup error after overlay in mounted.

The regression was fixed by upstream commit
  6eaf011144af ovl: fix EIO from lookup of non-indexed upper
that was merged to v4.14-rc7.

This test verifies that behavior is sane after creating lower
hardlinks for copied up files while overlayfs is offline.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/overlay/042 [new file with mode: 0755]
tests/overlay/042.out [new file with mode: 0644]
tests/overlay/group