If the file system is 1k, this test will fail because with dir_index enabled, the directory tree will get too deep, and the kernel will return ENOSPC and log the EXT4-fs warning "Directory (ino: NNN) index full, reach max htree level: 2". So if the blocksize is less than 2k, _notrun this test. Signed-off-by: Theodore Ts'o <tytso@xxxxxxx> --- tests/ext4/045 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/ext4/045 b/tests/ext4/045 index 4f0ad4aa7..5ae7a45b5 100755 --- a/tests/ext4/045 +++ b/tests/ext4/045 @@ -44,6 +44,10 @@ workout() _scratch_mkfs "-O extent,dir_nlink,dir_index -I 256" >> $seqres.full 2>&1 _scratch_mount + blocksize=$(_get_block_size $SCRATCH_MNT) + if [ "$blocksize" -lt 2048 ]; then + _notrun "blocksize $blocksize, too small" + fi # create directories mkdir -p $3 2> /dev/null -- 2.43.0