Skip to content

Commit

Permalink
Fix only doing one disk when list of disks is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
dvalinrh committed Aug 7, 2023
1 parent 04ef208 commit d1e796b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions fio/fio_run
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ else
fi
fi

os_info=`uname -a`
ubuntu=0
uname -a | grep -q -E 'Ubuntu|tegra'
if [[ $? -eq 0 ]]; then
if [[ $os_info == *"Ubuntu"* ]]; then
ubuntu=1
fi

Expand All @@ -109,7 +109,7 @@ ioengine="libaio"
block_size=""
test_type="read,write"
ct_disk_size="undef"
jobs_max="1"
jobs_max=""
jobs_min="1"
tested=0
run_time=120
Expand Down Expand Up @@ -505,9 +505,8 @@ obtain_disks()
max_disks=`echo $results | cut -d: -f 2`
disks=`echo $results | cut -d: -f 1`
else
disks=`echo $disks_passed | cut -d',' -f 1`
max_disks=`echo $disks | tr -d -c ' ' | awk '{ print length; }'`
let "max_disks=${max_disks}+1"
disks=`echo $disks_passed | sed "s/,/ /g"`
max_disks=`echo $disks | wc -w`
fi
}

Expand Down

0 comments on commit d1e796b

Please sign in to comment.