mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
qcow2: Fix header update with overridden backing file
In recent qemu versions, it is possible to override the backing file name and format that is stored in the image file with values given at runtime. In such cases, the temporary override could end up in the image header if the qcow2 header was updated, while obviously correct behaviour would be to leave the on-disk backing file path/format unchanged. Fix this and add a test case for it. Reported-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-id: 1428411796-2852-1-git-send-email-kwolf@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
5a24f20a72
commit
e4603fe139
5 changed files with 167 additions and 7 deletions
|
@ -124,3 +124,4 @@
|
|||
121 rw auto
|
||||
123 rw auto quick
|
||||
128 rw auto quick
|
||||
130 rw auto quick
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue