X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=sparsify%2Ftest-virt-sparsify.sh;h=4a7a2f653acdded9654e892a95f42fae1fc18e2c;hb=27d00960c93b26c68fa1f4068502c32a6e3b5e94;hp=4a054dbadc6c031ae5363b0f3707c008965f80c0;hpb=fac15924f59a076c903d453d20305e00e1ae258a;p=libguestfs.git diff --git a/sparsify/test-virt-sparsify.sh b/sparsify/test-virt-sparsify.sh index 4a054db..4a7a2f6 100755 --- a/sparsify/test-virt-sparsify.sh +++ b/sparsify/test-virt-sparsify.sh @@ -14,7 +14,7 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. export LANG=C set -e @@ -37,7 +37,7 @@ rm /boot/big umount-all EOF -./virt-sparsify --format raw test1.img --convert qcow2 test2.img +$VG ./virt-sparsify --debug-gc --format raw test1.img --convert qcow2 test2.img size_before=$(du -s test1.img | awk '{print $1}') size_after=$(du -s test2.img | awk '{print $1}') @@ -49,7 +49,7 @@ if [ $size_before -lt 310000 ]; then exit 1 fi -if [ $size_after -gt 5000 ]; then +if [ $size_after -gt 15000 ]; then echo "test virt-sparsify: size_after ($size_after) too large" echo "sparsification failed" exit 1