overlay/014: fix test with inodes index enabled
authorAmir Goldstein <amir73il@gmail.com>
Tue, 11 Jul 2017 19:52:03 +0000 (22:52 +0300)
committerEryu Guan <eguan@redhat.com>
Fri, 14 Jul 2017 07:41:46 +0000 (15:41 +0800)
commiteedff777a09803c82cb1ff996b5f449bcf02311f
tree7d20922df03cb3ca37a9d6aae49450fe91678d5e
parent9ab7c5ed6c1c0abe95cc836309b9c0485e55a7c4
overlay/014: fix test with inodes index enabled

When overlayfs is configured with CONFIG_OVERLAY_FS_INDEX=y,
workdir from previous overlay mount cannot be reused in a new
overlay mount that uses a different upper dir.

Fix the test to use a different workdir when mounting with a
different upper dir.

This change has not effect on older kernels and overlay
configured without CONFIG_OVERLAY_FS_INDEX.

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/014