overlay/036: fix upper/lower dir mismatch
authorAmir Goldstein <amir73il@gmail.com>
Fri, 26 Jan 2018 07:59:06 +0000 (09:59 +0200)
committerEryu Guan <eguan@redhat.com>
Mon, 29 Jan 2018 07:38:36 +0000 (15:38 +0800)
commit7aa1d4bcd4297335d6baa11c83a387f74923bce8
treef80b21f58ef10f5167e8b5c3399f51e829ae6b24
parentaee21da0fd05a4cc876766e1b02bef98a7ce2b48
overlay/036: fix upper/lower dir mismatch

Mount option index=on checks on mount that upper dir is not being
reused with a different lower dir than the first lower dir it was
mounted with. This behavior is verified by test overlay/037.

In this test however, it is not desired to fail mount on mismatch of
upper/lower, so use the matching upper/lower dirs in this test.

The mismatch went unnoticed because the index=off mounts do not
verify lower dir and the index=on mounts fails on EBUSY (dir in use
by another live mount) before failing on ESTALE (upper/lower dir
mismatch).

Never the less, fix the mismatch, so a change in the kernel between
the two sanity checks (EBUSY vs. ESTALE) won't break the test.

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