]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfstests: use blkid raw mode
authorChristoph Hellwig <hch@lst.de>
Mon, 15 Feb 2010 09:01:21 +0000 (10:01 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 15 Feb 2010 09:01:21 +0000 (10:01 +0100)
blkid without options usually gets no probe results at all just after
creating a filesystem.  This problem is due to the cache that blkid
uses in it's default mode, and is unlikely to get fixed.  Use the -p
option to bypass the cache layer.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <david@fromorbit.com>
common

diff --git a/common b/common
index c66cbad4dd214b57422816c2e2468dd74d3a67fc..9679b15d6a936bd40fe3310ff391a0178716eda6 100644 (file)
--- a/common
+++ b/common
@@ -47,7 +47,7 @@ rm -f $tmp.list $tmp.tmp $tmp.sed
 # Autodetect fs type based on what's on $TEST_DEV
 if [ "$HOSTOS" == "Linux" ]
 then
-    export FSTYP=`blkid -s TYPE -o value $TEST_DEV`
+    export FSTYP=`blkid -p -s TYPE -o value $TEST_DEV`
 else
     export FSTYP=xfs
 fi