Use _get_free_inode helper to get free inode count. Signed-off-by: Eryu Guan <eguan@xxxxxxxxxx> --- tests/shared/006 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/shared/006 b/tests/shared/006 index 445c35d..f7240c1 100755 --- a/tests/shared/006 +++ b/tests/shared/006 @@ -69,7 +69,7 @@ _scratch_mkfs_sized $((1024 * 1024 * 1024)) >>$seqres.full 2>&1 _scratch_mount i=0 -free_inode=`$DF_PROG -i $SCRATCH_MNT | tail -1 | awk '{print $3}'` +free_inode=`_get_free_inode $SCRATCH_MNT` file_per_dir=1000 loop=$((free_inode / file_per_dir + 1)) mkdir -p $SCRATCH_MNT/testdir -- 1.9.3 -- To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html