From f6406daca8a91216019e62c8924c171e8a414d05 Mon Sep 17 00:00:00 2001 From: chandan Date: Wed, 28 Aug 2013 06:24:10 +0000 Subject: [PATCH] xfstests: _test_generic_punch: Obtain block size from $TEST_DIR The current code incorrectly gets block size information from $TEST_DEV instead of from $TEST_DIR. This returns the block size of the filesystem hosting the device file rather than that of the filesystem on $TEST_DEV. Signed-off-by: chandan Reviewed-by: Eric Sandeen Signed-off-by: Rich Johnston --- common/punch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/punch b/common/punch index 7b3c0099..a49638ce 100644 --- a/common/punch +++ b/common/punch @@ -520,7 +520,7 @@ _test_generic_punch() if [ "$remove_testfile" ]; then rm -f $testfile fi - block_size=`stat -f $TEST_DEV | grep "Block size" | cut -d " " -f3` + block_size=`stat -f $TEST_DIR | grep "Block size" | cut -d " " -f3` $XFS_IO_PROG -f -c "truncate $block_size" \ -c "pwrite 0 $block_size" $sync_cmd \ -c "$zero_cmd 128 128" \ -- 2.39.5