mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
generic/312: remove dependency on /proc/partitions
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>
This commit is contained in:
committed by
Dave Chinner
parent
fdf1c150a0
commit
ab0fd68ff0
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user