Re: qemu-img create with preallocation=full and cluster-size=2M produces a bad file

2020-09-14 Thread Max Reitz
On 14.09.20 10:22, Max Reitz wrote: > On 11.09.20 17:39, Alberto Garcia wrote: >> On Fri 11 Sep 2020 04:55:08 PM CEST, Alberto Garcia wrote: $ qemu-img check prealloc_4G_2M.qcow2 ERROR: coffset=0x180a0: copied flag must never be set for compressed clusters >> >> I see, this

Re: qemu-img create with preallocation=full and cluster-size=2M produces a bad file

2020-09-14 Thread Max Reitz
On 11.09.20 17:39, Alberto Garcia wrote: > On Fri 11 Sep 2020 04:55:08 PM CEST, Alberto Garcia wrote: >>> $ qemu-img check prealloc_4G_2M.qcow2 >>> ERROR: coffset=0x180a0: copied flag must never be set for >>> compressed clusters > > I see, this was fixed recently (QEMU 5.0.0 is still

Re: qemu-img create with preallocation=full and cluster-size=2M produces a bad file

2020-09-11 Thread Alberto Garcia
On Fri 11 Sep 2020 04:55:08 PM CEST, Alberto Garcia wrote: >> $ qemu-img check prealloc_4G_2M.qcow2 >> ERROR: coffset=0x180a0: copied flag must never be set for >> compressed clusters I see, this was fixed recently (QEMU 5.0.0 is still affected), here is the patch:

Re: qemu-img create with preallocation=full and cluster-size=2M produces a bad file

2020-09-11 Thread Alberto Garcia
On Fri 11 Sep 2020 04:30:45 PM CEST, Bryan S Rosenburg wrote: > $ qemu-img --version > qemu-img version 4.2.0 (Debian 1:4.2-3ubuntu6.4) > Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers > > $ qemu-img create -f qcow2 prealloc_4G_2M.qcow2 4G -o >