]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
ext4/035: skip this test if the scratch device does not support 1k block sizes
authorTheodore Ts'o <tytso@mit.edu>
Thu, 30 Jun 2022 14:46:36 +0000 (10:46 -0400)
committerZorro Lang <zlang@kernel.org>
Sat, 2 Jul 2022 13:31:10 +0000 (21:31 +0800)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/ext4/035

index cad3595b782fd711f53f8fa717b5ee3b5a5f2ddb..1f26e766625fe9224fcf5bc4a3f3b7b31de903c1 100755 (executable)
@@ -26,6 +26,9 @@ _exclude_scratch_mount_option dax
 _require_command "$RESIZE2FS_PROG" resize2fs
 
 $MKFS_EXT4_PROG -F -b 1024 -E "resize=262144" $SCRATCH_DEV 32768 >> $seqres.full 2>&1
+if [ $? -ne 0 ]; then
+    _notrun "Can't make file system with a block size of 1024"
+fi
 _scratch_mount
 
 echo "Resizing to 262145 blocks"