From: Darrick J. Wong Date: Thu, 8 Oct 2020 03:53:48 +0000 (-0700) Subject: xfs/194: actually check if we got the desired block size before proceeding X-Git-Tag: v2022.05.01~647 X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=commitdiff_plain;h=5f35d3df8a14887a1a641fc8b0bb93dad2c78ae7 xfs/194: actually check if we got the desired block size before proceeding This test has specific fs block size requirements, so make sure that's what we got before we proceed with the test. Signed-off-by: Darrick J. Wong Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- diff --git a/tests/xfs/194 b/tests/xfs/194 index c36499c2..238db5c3 100755 --- a/tests/xfs/194 +++ b/tests/xfs/194 @@ -83,6 +83,9 @@ unset XFS_MKFS_OPTIONS # we need 512 byte block size, so crc's are turned off _scratch_mkfs_xfs -m crc=0 -b size=$blksize >/dev/null 2>&1 _scratch_mount +test "$(_get_block_size $SCRATCH_MNT)" = $blksize || \ + _notrun "Could not get $blksize-byte blocks" + # 512b block / 4k page example: #