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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Signed-off-by: Amir Goldstein <amir73il@xxxxxxxxx>
---

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(+)

diff --git a/kvm-xfstests/test-appliance/files/root/runtests.sh b/kvm-xfstests/test-appliance/files/root/runtests.sh
index 1905493..5430dd7 100755
--- a/kvm-xfstests/test-appliance/files/root/runtests.sh
+++ b/kvm-xfstests/test-appliance/files/root/runtests.sh
@@ -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
-- 
2.7.4




[Index of Archives]     [Linux Filesystems Devel]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux