This test validates atomic writes for all possible block sizes. In ext4, for
smaller block sizes with configurations like:
export MKFS_OPTIONS="-O bigalloc,quota -b 65536 -C 131072"
The output can get corrupted with warnings like below because clustersize
more than 16xbs is experimental:
+ 16 times the block size is considered experimental
Hence pipe these to seqres.full to avoid false negatives.
Reported-by: Disha Goel <disgoel@linux.ibm.com>
Signed-off-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Reviewed-by: Zorro Lang <zlang@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
local bsize=$1
get_mkfs_opts $bsize
- _scratch_mkfs $mkfs_opts >> $seqres.full
+ _scratch_mkfs $mkfs_opts &>> $seqres.full || \
+ echo "mkfs $mkfs_opts failed"
_scratch_mount
test "$FSTYP" = "xfs" && _xfs_force_bdev data $SCRATCH_MNT