<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -10,16 +10,17 @@ case &quot;$1&quot; in
 	else
 		DDNUM=20
 	fi
+	ROOTBLOCKDEV=`df -P / | tail -n1 | cut -f1 -d&quot; &quot;`
 	echo &quot;Starting $DDNUM processes:&quot;
 	for i in `seq 1 $DDNUM`; do
-		THISPID=`dd if=/dev/sda1 of=/dev/null seek=$((RANDOM * 100)) &amp; echo $!`
+		THISPID=`dd if=$ROOTBLOCKDEV of=/dev/null seek=$((RANDOM * 100)) &amp; echo $!`
 		DDPID=$DDPID:$THISPID
 		echo &quot;  $i of $DDNUM... [$THISPID]&quot;
 	done
 	echo &quot;done.&quot;
 	echo
-	echo &quot;$DDNUM processes started. You can either let them run until you kill&quot;
-	echo &quot;them/they finish, or you may terminate them all now by typing 'DIE'&quot;
+	echo &quot;$DDNUM processes started. You can either let them run until they finish&quot;
+	echo &quot;or you may terminate them all now by typing 'DIE'&quot;
 	read -p &quot;Terminate the processes? &quot;
 	if [ &quot;$REPLY&quot; == &quot;DIE&quot; ]; then
 		echo -n &quot;Terminating $DDNUM processes... &quot;</diff>
      <filename>stresstest</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>20d7883cf1fac58e57e548b954c1b2b87bc5f08c</id>
    </parent>
  </parents>
  <author>
    <name>Alex Malinovich</name>
    <email>amalinovich@engineyard.com</email>
  </author>
  <url>http://github.com/demonbane/helpers/commit/d4ea6f61076ba91861cb39905b5ad21709da3a32</url>
  <id>d4ea6f61076ba91861cb39905b5ad21709da3a32</id>
  <committed-date>2009-11-06T16:21:36-08:00</committed-date>
  <authored-date>2009-11-06T16:21:36-08:00</authored-date>
  <message>Auto-detect root block device instead of assuming /dev/sda1</message>
  <tree>56bb0b12fcf58bacddf485bdc5b5590244504c0a</tree>
  <committer>
    <name>Alex Malinovich</name>
    <email>amalinovich@engineyard.com</email>
  </committer>
</commit>
