[PATCH] xfstests: generic/285: use the canonical device name

Stanislav Kholmanskikh stanislav.kholmanskikh at oracle.com
Fri Nov 22 04:23:03 CST 2013


In order to access something under /sys/fs/ext4 we
need to be sure that the device name is canonical
(It matters, for example, if we use LVM).

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh at oracle.com>
---
 tests/generic/285 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/generic/285 b/tests/generic/285
index 8078b1c..be31852 100755
--- a/tests/generic/285
+++ b/tests/generic/285
@@ -48,7 +48,7 @@ BASE_TEST_FILE=$TEST_DIR/seek_sanity_testfile
 
 # Disable extent zeroing for ext4 as that change where holes are created
 if [ "$FSTYP" = "ext4" ]; then
-	DEV=`basename $TEST_DEV`
+	DEV=$(basename $(readlink -f $TEST_DEV))
 	echo 0 >/sys/fs/ext4/$DEV/extent_max_zeroout_kb
 fi
 
-- 
1.7.1



More information about the xfs mailing list