shared/006: use _get_free_inode helper
authorEryu Guan <eguan@redhat.com>
Wed, 13 Aug 2014 01:15:41 +0000 (11:15 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 13 Aug 2014 01:15:41 +0000 (11:15 +1000)
Use _get_free_inode helper to get free inode count.

Signed-off-by: Eryu Guan <eguan@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/shared/006

index 55c596593d39b6716ab4cc7ee0138f578c440e6a..6a237c95a8f9e39953b3b5c876021e18c32a94d9 100755 (executable)
@@ -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