diff mbox

[1/4] xfstests: remove dependency on /proc/partitions for generic/312

Message ID 1456115171-13191-2-git-send-email-tytso@mit.edu (mailing list archive)
State New, archived
Headers show

Commit Message

Theodore Ts'o Feb. 22, 2016, 4:26 a.m. UTC
From: Hugh Dickins <hughd@google.com>

We don't need to do this test at all, since _scratch_mkfs_sized will
do this check for us.   This allows this test to work with tmpfs.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
---
 tests/generic/312 | 5 -----
 1 file changed, 5 deletions(-)

Comments

Christoph Hellwig Feb. 22, 2016, 7:37 a.m. UTC | #1
Looks fine,

Reviewed-by: Christoph Hellwig <hch@lst.de>
--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/tests/generic/312 b/tests/generic/312
index b570814..669e19b 100755
--- a/tests/generic/312
+++ b/tests/generic/312
@@ -51,11 +51,6 @@  _require_scratch
 
 # 5G in byte
 fssize=$((2**30 * 5))
-required_blocks=$(($fssize / 1024))
-dev_blocks=$(grep -w $(_short_dev $SCRATCH_DEV) /proc/partitions | $AWK_PROG '{print $3}')
-if [ $required_blocks -gt $dev_blocks ];then
-	_notrun "this test requires \$SCRATCH_DEV has ${fssize}B space"
-fi
 
 rm -f $seqres.full
 _scratch_mkfs_sized $fssize >>$seqres.full 2>&1