| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH] xfstests: _test_generic_punch: Obtain block size from $TEST_DIR |
| From: | chandan <chandan@xxxxxxxxxxxxxxxxxx> |
| Date: | Wed, 28 Aug 2013 11:54:10 +0530 |
| Cc: | Eric Sandeen <sandeen@xxxxxxxxxxx>, Eric Sandeen <sandeen@xxxxxxxxxx>, sekharan@xxxxxxxxxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| User-agent: | KMail/4.10.5 (Linux/3.10.9-200.fc19.x86_64; KDE/4.10.5; x86_64; ; ) |
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 <chandan@xxxxxxxxxxxxxxxxxx>
---
common/punch | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/punch b/common/punch
index 7b3c009..a49638c 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" \
--
1.8.3.1
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | re:stage lighting price list, stagelighting product factory |
|---|---|
| Next by Date: | Encuentra trabajo con trabajoo.com, Trabajoo |
| Previous by Thread: | re:stage lighting price list, stagelighting product factory |
| Next by Thread: | Re: [PATCH] xfstests: _test_generic_punch: Obtain block size from $TEST_DIR, Eric Sandeen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |