[Qemu-devel] qemu-img create doesn't always replace the existing file

2016-11-08 Thread Richard W.M. Jones
When using 'qemu-img create', if the file being created already exists, then qemu-img tries to read it first. This has some unexpected effects: $ rm test.qcow2 $ qemu-img create -f qcow2 -o compat=1.1,preallocation=off test.qcow2 1G Formatting 'test.qcow2', fmt=qcow2 size=1073741824 compat=1.1

Re: [Qemu-devel] qemu-img create doesn't always replace the existing file

2016-11-08 Thread Kevin Wolf
[ Cc: qemu-block ] Am 08.11.2016 um 11:58 hat Richard W.M. Jones geschrieben: > When using 'qemu-img create', if the file being created already > exists, then qemu-img tries to read it first. This has some > unexpected effects: > > > $ rm test.qcow2 > $ qemu-img create -f qcow2 -o compat=1.1,p

Re: [Qemu-devel] qemu-img create doesn't always replace the existing file

2016-11-08 Thread Richard W.M. Jones
On Tue, Nov 08, 2016 at 03:05:24PM +0100, Kevin Wolf wrote: > [ Cc: qemu-block ] > > Am 08.11.2016 um 11:58 hat Richard W.M. Jones geschrieben: > > When using 'qemu-img create', if the file being created already > > exists, then qemu-img tries to read it first. This has some > > unexpected effect