overlay: Test mount error cases with overlapping layers
authorAmir Goldstein <amir73il@gmail.com>
Tue, 28 May 2019 08:27:14 +0000 (11:27 +0300)
committerEryu Guan <guaneryu@gmail.com>
Sun, 2 Jun 2019 08:41:42 +0000 (16:41 +0800)
commit5543924d1378867bb3825c443dd2a09479393a49
treed72d80c6e64392c253cc29f01561f040a13a05e8
parent2815cda6ac225ec73cf4cbdb6427fd9ece210141
overlay: Test mount error cases with overlapping layers

Add tests for overlayfs mounts with:
- Same upperdir/lowerdir
- Overlapping upperdir/lowerdir
- Overlapping lowerdir layers
- Overlapping lowerdir with other mount upperdir/workdir

Add test for moving layer into another after mount.

Overlapping layers on mount or lookup results in ELOOP.
Overlapping lowerdir with other mount upperdir/workdir
result in EBUSY.

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