From: Ritesh Harjani Date: Wed, 21 Jul 2021 05:27:56 +0000 (+0530) Subject: ext4/306: Add -b blocksize parameter too to avoid failure with DAX config X-Git-Tag: v2022.05.01~302 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2a8ee2afe5febe67e9e54c92fe59a8e3bce8ed7b;p=xfstests-dev.git ext4/306: Add -b blocksize parameter too to avoid failure with DAX config mkfs.ext4 by default uses 4K blocksize. On DAX config with a 64K pagesize platform (PPC64), this will fail to mount since DAX requires bs == ps. Hence add the -b blocksize paramter in ext4/306. Reviewed-by: Theodore Ts'o Signed-off-by: Ritesh Harjani Signed-off-by: Eryu Guan --- diff --git a/tests/ext4/306 b/tests/ext4/306 index 4a339570..2ff88537 100755 --- a/tests/ext4/306 +++ b/tests/ext4/306 @@ -33,7 +33,10 @@ features="^extents" if grep -q 64bit /etc/mke2fs.conf ; then features="^extents,^64bit" fi -$MKFS_EXT4_PROG -F -O "$features" $SCRATCH_DEV 512m >> $seqres.full 2>&1 + +blksz=$(get_page_size) + +$MKFS_EXT4_PROG -F -b $blksz -O "$features" $SCRATCH_DEV 512m >> $seqres.full 2>&1 _scratch_mount # Create a small non-extent-based file