From c72be578c1bbd2df6a4ddf957319084863ad7306 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 23 Feb 2017 08:14:44 -0500 Subject: [PATCH] debian: Old qemu-img does not support -f raw -o preallocation=off The old version of qemu-img available in Debian 8 doesn't support the preallocation option for raw format. However this doesn't matter because the default is preallocation=off (ie. sparse) for old and new versions of qemu-img so we can just omit this parameter. Fixes commit 53317e3f079863d9ea87725b73c7104b34a607e2 and commit fa83b4787653aa296a09d149cfa3e30aaed4eea6 and commit 74ded0dbc17b84638cc06c0b4d028484d114c00f. --- test-data/blank-disks/Makefile.am | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test-data/blank-disks/Makefile.am b/test-data/blank-disks/Makefile.am index 72e85db68..79ca05442 100644 --- a/test-data/blank-disks/Makefile.am +++ b/test-data/blank-disks/Makefile.am @@ -32,19 +32,19 @@ CLEANFILES += $(files) # Blank disk images in various sizes and formats. blank-disk-1s.raw: - qemu-img create -f raw -o preallocation=off $@ 512 + qemu-img create -f raw $@ 512 blank-disk-1s.qcow2: qemu-img create -f qcow2 -o preallocation=metadata $@ 512 blank-disk-1K.raw: - qemu-img create -f raw -o preallocation=off $@ 1K + qemu-img create -f raw $@ 1K blank-disk-1K.qcow2: qemu-img create -f qcow2 -o preallocation=metadata $@ 1K blank-disk-1M.raw: - qemu-img create -f raw -o preallocation=off $@ 1M + qemu-img create -f raw $@ 1M blank-disk-1M.qcow2: qemu-img create -f qcow2 -o preallocation=metadata $@ 1M