Skip to contentSkip to conversation

shared/006: use _get_free_inode helper

PATCH Superseded Eryu Guan 1 participant 1 message Jul 16, 2014

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Eryu Guan

author
#0 lore raw

PATCH 2/2 shared/006: use _get_free_inode helper

Use _get_free_inode helper to get free inode count.

---
 tests/shared/006 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/shared/006 +1 -1
index 445c35d..f7240c1 100755
@@ -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
Signature · 1 line
1.9.3