disk_stress_ng fails on mapper devices
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox Provider - Base |
Fix Released
|
High
|
Jeff Lane |
Bug Description
Changes were made to disk_stress_ng to handle dev/mapper devices (mostly for hot-swap RAID)
On running this in situations where LVM is active (even if only on one disk), the script errors out because of some coding issues.
The biggest issue is this:
if [ "${disk_
Note we explicitly set call the partition size as the second item in the output, which produces lines like this:
sda2 205288112128 part /
But further down, we actually try to get the size from item 3, which is the TYPE, not the SIZE:
if [ -b "/dev/$partition" ]; then
elif [ -b "/dev/mapper/
else
echo "$partition not found!"
echo "Aborting test"
exit 1
fi
That second bit for devices in /dev/mapper should also be looking at field 2, not field 3.
Related branches
- Maciej Kisielewski (community): Approve
-
Diff: 22 lines (+2/-2)1 file modifiedbin/disk_stress_ng (+2/-2)
Changed in plainbox-provider-checkbox: | |
status: | In Progress → Fix Committed |
Changed in plainbox-provider-checkbox: | |
status: | Fix Committed → Fix Released |