overlay: regression test for orphan index cleanup on mount
authorAmir Goldstein <amir73il@gmail.com>
Tue, 28 Nov 2017 16:42:01 +0000 (18:42 +0200)
committerEryu Guan <eguan@redhat.com>
Fri, 1 Dec 2017 08:51:00 +0000 (16:51 +0800)
commitbe7b6165bc20915ac41e03cdf11141545ceae15d
tree9a0e133be63e2e248c79c38642ce50979981ec01
parent77847f3e448991d9001280cde02f80b46bc5a346
overlay: regression test for orphan index cleanup on mount

Test nlink accounting of overlay hardlinks with offline modifications.

nlink of overlay inode should account for the union of lower and upper
hardlinks. Orphan index inodes with union nlink 0 should be cleaned on
mount.

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/048 [new file with mode: 0755]
tests/overlay/048.out [new file with mode: 0644]
tests/overlay/group