Skip to contentSkip to conversation

xfstests: use blkid raw mode

PATCH In review Christoph Hellwig 2 participants 2 messages Feb 14, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfstests: use blkid raw mode

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.

common +1 -1
Index: xfstests-dev/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

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Christoph Hellwig

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.

Make sense.

Signature · 7 lines
Dave Chinner
[email protected]

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs