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>
This commit is contained in:
zhangyi (F)
2017-06-19 11:53:39 +08:00
committed by Eryu Guan
parent 9bcb266cd7
commit 10ad750169
3 changed files with 100 additions and 0 deletions
+1
View File
@@ -33,3 +33,4 @@
028 auto copyup quick
029 auto quick
030 auto quick perms
031 auto quick whiteout