On Thu, Jul 29, 2021 at 04:35:53PM -0400, Josef Bacik wrote: > My nightly fstests runs on my Raspberry Pi got stuck trying to run > generic/204. This boiled down to mkfs failing to make the scratch > device that small with the subpage blocksize support, and thus trying to > fill a 1tib drive with tiny files. On one hand I'd like to make > _scratch_mkfs failures automatically fail the test, but I worry about > cases where a test may be checking for an option and need to do > something different with failures, so for now simply fail if we can't > make our tiny-fs in generic/204. > > Signed-off-by: Josef Bacik <josef@xxxxxxxxxxxxxx> FWIW, I'm carrying the following patch in my local xfstests tree: commit cb8e8d44de5bbb1d6163dfeb2b77e8f003a564da Author: Theodore Ts'o <tytso@xxxxxxx> Date: Mon Jul 3 01:29:21 2017 -0400 common: kill the test if mkfs.ext4 in _scratch_mkfs_sized fails If the file system size specified by test is incompatible with the mkfs options used in the test configuration, make sure the test stops at that point instad of doing something undefined. Signed-off-by: Theodore Ts'o <tytso@xxxxxxx> diff --git a/common/rc b/common/rc index 332e18b7..1dcad4a3 100644 --- a/common/rc +++ b/common/rc @@ -1034,7 +1034,9 @@ _scratch_mkfs_sized() fi ;; ext2|ext3|ext4|ext4dev) - ${MKFS_PROG} -t $FSTYP -F $MKFS_OPTIONS -b $blocksize $SCRATCH_DEV $blocks + echo "${MKFS_PROG} -t $FSTYP -F $MKFS_OPTIONS -b $blocksize $SCRATCH_DEV $blocks" + ${MKFS_PROG} -t $FSTYP -F $MKFS_OPTIONS -b $blocksize $SCRATCH_DEV $blocks || \ + _die "${MKFS_PROG}.$FSTYP failed!" ;; gfs2) # mkfs.gfs2 doesn't automatically shrink journal files on small I tried getting this upstream, but apparently there was pushback where when the mkfs failed, it was considered a *feature* that the test would run on some random scratch file system that was previously there from before. I didn't appreciate wasting time trying to run down test failures caused by some completely inappropriate file system being used for a test after _scratch_mkfs_sized failed, so I've just been carrying the patch locally.... - Ted