From: Yang Xu Date: Thu, 28 Mar 2019 07:48:59 +0000 (+0800) Subject: common/populate: decrease the step of rm file X-Git-Tag: v2022.05.01~1200 X-Git-Url: https://git.ceph.com/?p=xfstests-dev.git;a=commitdiff_plain;h=b1887f84e6f7d93ed925a831ed60030f541bcb5d;ds=inline common/populate: decrease the step of rm file Now that we have allocated 2*4096*64/16(32768) inodes after "Inode btree", but the step of rm file is too large to create enough free inodes in agi. So the freecount is not enough large to make free_level gt 1 and call _scratch__populate on xfs will report the following failure(such as xfs/083): Failed to create fino of sufficient height! By decreasing the step of rm file, xfs/083 will pass. Signed-off-by: Yang Xu Reviewed-by: Darrick J. Wong Signed-off-by: Eryu Guan --- diff --git a/common/populate b/common/populate index 4fa118f0..7403dec3 100644 --- a/common/populate +++ b/common/populate @@ -271,7 +271,7 @@ _scratch_xfs_populate() { touch "${dir}/${f}" done - seq 0 "$((ino_per_rec + 1))" "${nr}" | while read f; do + seq 0 2 "${nr}" | while read f; do rm -f "${dir}/${f}" done