[Top] [All Lists]

[PATCH] xfstests: avoid blkid cache with -c /dev/null not -p

To: xfs-oss <xfs@xxxxxxxxxxx>
Subject: [PATCH] xfstests: avoid blkid cache with -c /dev/null not -p
From: Eric Sandeen <sandeen@xxxxxxxxxx>
Date: Mon, 08 Mar 2010 11:15:49 -0600
Cc: Lukas Czerner <lczerner@xxxxxxxxxx>
User-agent: Thunderbird (Macintosh/20090812)
From: Lukas Czerner <lczerner@xxxxxxxxxx>

The addition of "-p" to blkid calls broke xfstests
on older systems where this was not supported.

Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxxx>

 common |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/common b/common
index 9679b15..828563d 100644
--- 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" ]
-    export FSTYP=`blkid -p -s TYPE -o value $TEST_DEV`
+    export FSTYP=`blkid -c /dev/null -s TYPE -o value $TEST_DEV`
     export FSTYP=xfs

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