[Top] [All Lists]

[PATCH] xfstests: use blkid raw mode

To: xfs@xxxxxxxxxxx
Subject: [PATCH] xfstests: use blkid raw mode
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Sun, 14 Feb 2010 17:07:53 -0500
User-agent: Mutt/1.5.19 (2009-01-05)
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@xxxxxx>

Index: xfstests-dev/common
--- xfstests-dev.orig/common    2010-02-11 16:08:58.000000000 +0000
+++ xfstests-dev/common 2010-02-11 16:09:03.000000000 +0000
@@ -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" ]
-    export FSTYP=`blkid -s TYPE -o value $TEST_DEV`
+    export FSTYP=`blkid -p -s TYPE -o value $TEST_DEV`
     export FSTYP=xfs

<Prev in Thread] Current Thread [Next in Thread>