opencompute-developers team mailing list archive
-
opencompute-developers team
-
Mailing list archive
-
Message #00350
[Merge] lp:~bladernr/opencompute/fix-disk_stress into lp:opencompute/checkbox
Jeff Lane has proposed merging lp:~bladernr/opencompute/fix-disk_stress into lp:opencompute/checkbox.
Requested reviews:
Open Compute Developers (opencompute-developers)
For more details, see:
https://code.launchpad.net/~bladernr/opencompute/fix-disk_stress/+merge/235346
fix a bug that occurs when there are two or more partitions from the same test disk mounted.
--
https://code.launchpad.net/~bladernr/opencompute/fix-disk_stress/+merge/235346
Your team Open Compute Developers is requested to review the proposed merge of lp:~bladernr/opencompute/fix-disk_stress into lp:opencompute/checkbox.
=== modified file 'scripts/disk_stress'
--- scripts/disk_stress 2013-09-27 13:25:11 +0000
+++ scripts/disk_stress 2014-09-19 22:17:39 +0000
@@ -24,7 +24,7 @@
# Find out where we're mounted or exit
if [[ `mount | grep $DISK` ]]; then
- TEMPDIR=`mount | grep $DISK | awk '{print $3}'`/temp
+ TEMPDIR=`mount | grep -m 1 $DISK | awk '{print $3}'`/temp
else
echo "Disk $DISK does not appear to be mounted. Exiting."
exit 1
References