fe646693ac
This will let us print options in a format that the user would actually write it on the command line (foo=bar,baz=asd,etc=def), without prepending a spurious comma at the beginning of the list, or quoting values unnecessarily. This patch provides the following changes: * write and id=, if the option has an id * do not print separator before the first element * do not quote string arguments * properly escape commas (,) for QEMU Signed-off-by: Kővágó, Zoltán <DirtY.iCE.hu@gmail.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
67 lines
2.2 KiB
Plaintext
67 lines
2.2 KiB
Plaintext
QA output created by 043
|
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
|
|
|
|
== backing file references self ==
|
|
qemu-img: Backing file 'TEST_DIR/t.IMGFMT' creates an infinite loop.
|
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
|
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.base
|
|
|
|
== parent references self ==
|
|
qemu-img: Backing file 'TEST_DIR/t.IMGFMT' creates an infinite loop.
|
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
|
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.1.base
|
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.2.base
|
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.3.base
|
|
|
|
== ancestor references another ancestor ==
|
|
qemu-img: Backing file 'TEST_DIR/t.IMGFMT.2.base' creates an infinite loop.
|
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
|
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.1.base
|
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.2.base
|
|
|
|
== finite chain of length 3 (human) ==
|
|
image: TEST_DIR/t.IMGFMT
|
|
file format: IMGFMT
|
|
virtual size: 128M (134217728 bytes)
|
|
cluster_size: 65536
|
|
backing file: TEST_DIR/t.IMGFMT.2.base
|
|
|
|
image: TEST_DIR/t.IMGFMT.2.base
|
|
file format: IMGFMT
|
|
virtual size: 128M (134217728 bytes)
|
|
cluster_size: 65536
|
|
backing file: TEST_DIR/t.IMGFMT.1.base
|
|
|
|
image: TEST_DIR/t.IMGFMT.1.base
|
|
file format: IMGFMT
|
|
virtual size: 128M (134217728 bytes)
|
|
cluster_size: 65536
|
|
|
|
== finite chain of length 3 (json) ==
|
|
[
|
|
{
|
|
"virtual-size": 134217728,
|
|
"filename": "TEST_DIR/t.IMGFMT",
|
|
"cluster-size": 65536,
|
|
"format": "IMGFMT",
|
|
"backing-filename": "TEST_DIR/t.IMGFMT.2.base",
|
|
"dirty-flag": false
|
|
},
|
|
{
|
|
"virtual-size": 134217728,
|
|
"filename": "TEST_DIR/t.IMGFMT.2.base",
|
|
"cluster-size": 65536,
|
|
"format": "IMGFMT",
|
|
"backing-filename": "TEST_DIR/t.IMGFMT.1.base",
|
|
"dirty-flag": false
|
|
},
|
|
{
|
|
"virtual-size": 134217728,
|
|
"filename": "TEST_DIR/t.IMGFMT.1.base",
|
|
"cluster-size": 65536,
|
|
"format": "IMGFMT",
|
|
"dirty-flag": false
|
|
}
|
|
]
|
|
*** done
|