fstests.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] xfs/194: actually check if we got the desired block size before proceeding
@ 2020-10-08  3:53 Darrick J. Wong
  0 siblings, 0 replies; only message in thread
From: Darrick J. Wong @ 2020-10-08  3:53 UTC (permalink / raw)
  To: Eryu Guan; +Cc: fstests, xfs

From: Darrick J. Wong <darrick.wong@oracle.com>

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 <darrick.wong@oracle.com>
---
 tests/xfs/194 |    3 +++
 1 file changed, 3 insertions(+)

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:
 #

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-08  3:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-08  3:53 [PATCH] xfs/194: actually check if we got the desired block size before proceeding Darrick J. Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).