Detect FS type to test based on TEST_DEV

This helps support generic / non-xfs fileystems.

Rather than defaulting to xfs or expecting a fs
type passed in, just look at what is on TEST_DEV
and use that for FSTYP by default.

We may wish to add a generic way to override this later.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
This commit is contained in:
Eric Sandeen
2009-05-27 13:44:57 -05:00
parent 914f5260d0
commit 39964bfaa2
+7 -1
View File
@@ -30,7 +30,13 @@ have_test_arg=false
randomize=false
rm -f $tmp.list $tmp.tmp $tmp.sed
export FSTYP=xfs
# Autodetect fs type based on what's on $TEST_DEV
if [ "$HOSTOS" == "Linux" ]
then
export FSTYP=`blkid -s TYPE -o value $TEST_DEV`
else
export FSTYP=xfs
fi
for r
do