Message ID | 280020a9d6791ad4fc1c51bef9c20771f6791d69.1623651783.git.riteshh@linux.ibm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | 64K blocksize related fixes | expand |
On Mon, Jun 14, 2021 at 11:58:07AM +0530, Ritesh Harjani wrote: > 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. > > Signed-off-by: Ritesh Harjani <riteshh@linux.ibm.com> Looks good, thanks. Reviewed-by: Theodore Ts'o <tytso@mit.edu> - Ted
diff --git a/tests/ext4/306 b/tests/ext4/306 index 146fdb39..1d45a9d0 100755 --- a/tests/ext4/306 +++ b/tests/ext4/306 @@ -38,7 +38,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
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. Signed-off-by: Ritesh Harjani <riteshh@linux.ibm.com> --- tests/ext4/306 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)