]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
generic/312: remove dependency on /proc/partitions
authorHugh Dickins <hughd@google.com>
Sun, 28 Feb 2016 23:17:34 +0000 (10:17 +1100)
committerDave Chinner <david@fromorbit.com>
Sun, 28 Feb 2016 23:17:34 +0000 (10:17 +1100)
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>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/generic/312

index b570814312462b5a04841fac6d483e83563f1f8c..669e19b4ab48d127a1e1dd5ef671e1801d0e27fc 100755 (executable)
@@ -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