Skip to contentSkip to conversation

test-appliance: store the base fs type for overlay test run

PATCH New Amir Goldstein 1 participant 1 message Aug 27, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test-appliance: store the base fs type for overlay test run

The base fs is used by xfstests in several places, for example, to check if need to disable extent zeroing for underlying ext4 base fs.

---

Ted,

This patch is complimentary to this change in fstests:
https://marc.info/?l=fstests&m=153539445716875&w=2

Thanks,
Amir.

 kvm-xfstests/test-appliance/files/root/runtests.sh | 5 +++++
 1 file changed, 5 insertions(+)
kvm-xfstests/test-appliance/files/root/runtests.sh +5 -0
index 1905493..5430dd7 100755
@@ -379,6 +379,11 @@ do
 	    echo TEST_SET_EXCLUDE: $TEST_SET_EXCLUDE
 	    echo TEST_SET_EXCLUDE: $XFS_IO_AVOID >> "$RESULT_BASE/config"
 	fi
+	if [ "$FS" = overlay ]; then
+		# with an overlay configuration preserve base FSTYP
+		# in OVL_BASE_FSTYP
+		export OVL_BASE_FSTYP="$FSTESTTYP"
+	fi
 	export FSTYP=$FS
 	AEX=""
 	if test -n "$DO_AEX" ; then
Signature · 1 line
2.7.4