]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
overlay: test whiteout check in impure dir
authorzhangyi (F) <yi.zhang@huawei.com>
Mon, 19 Jun 2017 03:53:39 +0000 (11:53 +0800)
committerEryu Guan <eguan@redhat.com>
Mon, 19 Jun 2017 10:26:09 +0000 (18:26 +0800)
commit10ad7501694ad1a151dd69de7e68080c358b570a
tree386782ac835f564978683c94a86dda91c0282557
parent9bcb266cd778f8de9dab4b8c7e5664ddf50e888a
overlay: test whiteout check in impure dir

The unmerged and impure upper directories may contain invalid
whiteouts when we umount && modify lowerdir(e.g. clean up dir) and
remount overlay. This may lead to whiteouts exposure and rmdir
failure.

This case test impure dir's whiteouts check in ovl_iterate() and
ovl_remove_xxx().

Signed-off-by: zhangyi (F) <yi.zhang@huawei.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/overlay/031 [new file with mode: 0755]
tests/overlay/031.out [new file with mode: 0644]
tests/overlay/group