generic/619: a better way to get tot_avail_size
PATCH v2 1/1 generic/619: a better way to get tot_avail_size
When FSTYP is tmpfs, $DF_PROG --block-size=1 $SCRATCH_DEV is not suitted.
Signei-off-by Sun Ke <[email protected]>
--- tests/generic/619 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/generic/619 +1 -1
@@ -89,7 +89,7 @@ calc_thread_cnt() IFS=',' read -ra fratio <<< $file_ratio file_ratio_cnt=${#fratio[@]} - tot_avail_size=$($DF_PROG --block-size=1 $SCRATCH_DEV | awk 'FNR == 2 { print $5 }') + tot_avail_size=$($DF_PROG --block-size=1 $SCRATCH_MNT | $AWK_PROG 'FNR == 2 { print $5 }') avail_size=$(echo $tot_avail_size*$disk_saturation | $BC_PROG) thread_cnt=$(echo "$file_ratio_cnt*($avail_size/$file_ratio_unit)" | $BC_PROG)
Signature · 1 line
2.25.4