overlay: test mount error cases with index=on
authorAmir Goldstein <amir73il@gmail.com>
Tue, 15 Aug 2017 10:31:30 +0000 (13:31 +0300)
committerEryu Guan <eguan@redhat.com>
Fri, 18 Aug 2017 05:39:34 +0000 (13:39 +0800)
commite4caca53e280741b8d18e54500a7ce8cbb25c097
tree3c5d2f80c2ff9c68aaa68e5a6647cef4ead2fea8
parent4dbba416d98a11194d5c7af23d74f4d601cf7d3b
overlay: test mount error cases with index=on

- Upper/lower mismatch
- Index/upper mismatch

With index=on, lowerdir and upperdir are verified using a file
handle stored in trusted.overlay.origin xattr in upperdir and
indexdir.

Failure to verify lowerdir/upperdir on mount results in ESTALE.

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/037 [new file with mode: 0755]
tests/overlay/037.out [new file with mode: 0644]
tests/overlay/group