generic/067 mounts $SCRATCH_DEV directly in the test, assuming it's
a block device. generic/299 and generic/300 query the size of
$SCRATCH_DEV by running 'blockdev --getsz $SCRATCH_DEV'.
So add the check to make sure $SCRATCH_DEV is a real block device in
these tests.
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
_require_test
_require_scratch
_require_loop
+_require_block_device $SCRATCH_DEV
rm -f $seqres.full
_supported_os Linux
_require_scratch
_require_odirect
+_require_block_device $SCRATCH_DEV
NUM_JOBS=$((4*LOAD_FACTOR))
BLK_DEV_SIZE=`blockdev --getsz $SCRATCH_DEV`
_supported_os Linux
_require_scratch
_require_odirect
+_require_block_device $SCRATCH_DEV
# xfs_io is not required for this test, but it's the best way to verify
# the test system supports fallocate() for allocation and hole punching