Skip to content

Commit

Permalink
Details:
Browse files Browse the repository at this point in the history
When using cirros images, of any flavor, e.g. tiny,
the root filesystem in the image is far smaller than
the flavor creates.  As such, the dd write silently fails
and the time results are incorrectly brief.  The resize2fs
corrects the root volume size and we get more accurate results.
  • Loading branch information
kambiz-aghaiepour committed Aug 18, 2014
1 parent 991563d commit be708ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/samples/tasks/support/instance_dd_test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
sudo resize2fs /dev/vda1 1>/dev/null 2>&1
time_seconds(){ (time -p $1 ) 2>&1 |awk '/real/{print $2}'; }
file=/tmp/test.img
c=1000 #1GB
Expand Down

0 comments on commit be708ba

Please sign in to comment.