overlay: enable the index feature for overlay/hardlink tests
authorAmir Goldstein <amir73il@gmail.com>
Wed, 12 Jul 2017 09:43:25 +0000 (12:43 +0300)
committerEryu Guan <eguan@redhat.com>
Sun, 16 Jul 2017 11:15:15 +0000 (19:15 +0800)
commit29e399dae8cdd93888225c14816811c8554957f1
tree2e301e612ae95d2607ce0855bc01a3d79de85045
parent9107e08df7efd8aa89ec319f174a80a839870796
overlay: enable the index feature for overlay/hardlink tests

Overlayfs hardlink test are expected to fail if overlayfs does not
support the inodes index feature, so don't un them if kernel does
not support the feature.

If the feature is supported, enable it with the index=on mount option
for the hardlink tests, regardless of the build time default determined
by kernel config option 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/018
tests/overlay/032
tests/overlay/033
tests/overlay/034