From: Richard Jones Date: Tue, 20 Apr 2010 10:04:14 +0000 (+0100) Subject: Replace 'dd' in tests with use of guestfish 'sparse' command. X-Git-Tag: 1.3.6~11 X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=commitdiff_plain;h=175c01d2336c07113f1c2966966957de5c344e3a Replace 'dd' in tests with use of guestfish 'sparse' command. 'dd' is a very inefficient way to create files. 'truncate' is better, but unfortunately that command is not available in RHEL 5. So use the guestfish 'sparse' command instead (which also avoids allocating disk space). --- diff --git a/regressions/rhbz503169c10.sh b/regressions/rhbz503169c10.sh index 0a32749..a975f69 100755 --- a/regressions/rhbz503169c10.sh +++ b/regressions/rhbz503169c10.sh @@ -22,9 +22,9 @@ set -e rm -f test1.img -dd if=/dev/zero of=test1.img bs=1024k count=10 -../fish/guestfish -a test1.img <