On 13.09.18 20:37, Max Reitz wrote:

[...]

> Or, we would have to use backing=null, but for some reason that doesn't
> work.  I'll have to investigate.

Turns out this was fixed in e59a0cf17b1b9932b65e6fc25d6856976f5e4831.

(Why does Fedora still have only qemu 2.11?)

> So rebase will need to do:
> 
> $ qemu-img rebase -u -b '' img.003
> 
> $ qemu-img convert -O qcow2 \
>     "json:{'driver':'raw','offset':0,'size':1048576,\
>            'file':{'driver':'qcow2',\
>                    'file':{'driver':'file','filename':'img.003'}}}" \
>     "json:{'driver':'null-co','size':2097152}" \
>     img.003.commit.000
> 
> $ qemu-img convert -O qcow2 \
>     "json:{'driver':'null-co','size':1048576}" \
>     "json:{'driver':'raw','offset':1048576,'size':2097152,\
>            'file':{'driver':'qcow2',\
>                    'file':{'driver':'file','filename':'img.003'}}}" \
>     img.003.nocommit

So starting with 2.12, putting a "'backing':null" behind
"'driver':'qcow2," will work just as well as rebasing img.003.

Max

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to