e4603fe139
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>
44 lines
2.3 KiB
Plaintext
44 lines
2.3 KiB
Plaintext
QA output created by 130
|
||
Formatting 'TEST_DIR/t.IMGFMT.orig', fmt=IMGFMT size=67108864
|
||
Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864
|
||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
||
image: TEST_DIR/t.IMGFMT
|
||
file format: IMGFMT
|
||
virtual size: 64M (67108864 bytes)
|
||
|
||
=== HMP commit ===
|
||
|
||
QEMU X.Y.Z monitor - type 'help' for more information
|
||
(qemu) c[K[Dco[K[D[Dcom[K[D[D[Dcomm[K[D[D[D[Dcommi[K[D[D[D[D[Dcommit[K[D[D[D[D[D[Dcommit [K[D[D[D[D[D[D[Dcommit i[K[D[D[D[D[D[D[D[Dcommit id[K[D[D[D[D[D[D[D[D[Dcommit ide[K[D[D[D[D[D[D[D[D[D[Dcommit ide0[K[D[D[D[D[D[D[D[D[D[D[Dcommit ide0-[K[D[D[D[D[D[D[D[D[D[D[D[Dcommit ide0-h[K[D[D[D[D[D[D[D[D[D[D[D[D[Dcommit ide0-hd[K[D[D[D[D[D[D[D[D[D[D[D[D[D[Dcommit ide0-hd0[K
|
||
(qemu)
|
||
image: TEST_DIR/t.IMGFMT
|
||
file format: IMGFMT
|
||
virtual size: 64M (67108864 bytes)
|
||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file='TEST_DIR/t.IMGFMT.orig' backing_fmt='raw'
|
||
QEMU X.Y.Z monitor - type 'help' for more information
|
||
(qemu) c[K[Dco[K[D[Dcom[K[D[D[Dcomm[K[D[D[D[Dcommi[K[D[D[D[D[Dcommit[K[D[D[D[D[D[Dcommit [K[D[D[D[D[D[D[Dcommit i[K[D[D[D[D[D[D[D[Dcommit id[K[D[D[D[D[D[D[D[D[Dcommit ide[K[D[D[D[D[D[D[D[D[D[Dcommit ide0[K[D[D[D[D[D[D[D[D[D[D[Dcommit ide0-[K[D[D[D[D[D[D[D[D[D[D[D[Dcommit ide0-h[K[D[D[D[D[D[D[D[D[D[D[D[D[Dcommit ide0-hd[K[D[D[D[D[D[D[D[D[D[D[D[D[D[Dcommit ide0-hd0[K
|
||
(qemu)
|
||
image: TEST_DIR/t.IMGFMT
|
||
file format: IMGFMT
|
||
virtual size: 64M (67108864 bytes)
|
||
backing file: TEST_DIR/t.IMGFMT.orig
|
||
backing file format: raw
|
||
|
||
=== Marking image dirty (lazy refcounts) ===
|
||
|
||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
||
wrote 4096/4096 bytes at offset 0
|
||
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
||
image: TEST_DIR/t.IMGFMT
|
||
file format: IMGFMT
|
||
virtual size: 64M (67108864 bytes)
|
||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file='TEST_DIR/t.IMGFMT.orig' backing_fmt='raw'
|
||
wrote 4096/4096 bytes at offset 0
|
||
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
||
image: TEST_DIR/t.IMGFMT
|
||
file format: IMGFMT
|
||
virtual size: 64M (67108864 bytes)
|
||
backing file: TEST_DIR/t.IMGFMT.orig
|
||
backing file format: raw
|
||
*** done
|