2020-07-28 00:58:46 +03:00
|
|
|
Start NBD server
|
|
|
|
=== Target image info ===
|
|
|
|
image: nbd+unix:///exp?socket=SOCK_DIR/PID-nbd-sock
|
|
|
|
file format: raw
|
|
|
|
virtual size: 448 KiB (458752 bytes)
|
|
|
|
disk size: unavailable
|
qemu-img: Let info print block graph
For every node in the backing chain, collect its BlockGraphInfo struct
using bdrv_query_block_graph_info(). Print all nodes' information,
indenting child nodes and labelling them with a path constructed from
the child names leading to the node from the root (e.g. /file/file).
Note that we open each image with BDRV_O_NO_BACKING, so its backing
child is omitted from this graph, and thus presented in the previous
manner: By simply concatenating all images' information, separated with
blank lines.
This affects two iotests:
- 065: Here we try to get the format node's format specific information.
The pre-patch code does so by taking all lines from "Format specific
information:" until an empty line. This format specific information
is no longer followed by an empty line, though, but by child node
information, so limit the range by "Child node '/file':".
- 302: Calls qemu_img() for qemu-img info directly, which does not
filter the output, so the child node information ends up in the
output.
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Message-Id: <20220620162704.80987-12-hreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2022-06-20 19:27:03 +03:00
|
|
|
Child node '/file':
|
2022-06-20 19:27:04 +03:00
|
|
|
filename: nbd+unix:///exp?socket=SOCK_DIR/PID-nbd-sock
|
|
|
|
protocol type: nbd
|
|
|
|
file length: 448 KiB (458752 bytes)
|
qemu-img: Let info print block graph
For every node in the backing chain, collect its BlockGraphInfo struct
using bdrv_query_block_graph_info(). Print all nodes' information,
indenting child nodes and labelling them with a path constructed from
the child names leading to the node from the root (e.g. /file/file).
Note that we open each image with BDRV_O_NO_BACKING, so its backing
child is omitted from this graph, and thus presented in the previous
manner: By simply concatenating all images' information, separated with
blank lines.
This affects two iotests:
- 065: Here we try to get the format node's format specific information.
The pre-patch code does so by taking all lines from "Format specific
information:" until an empty line. This format specific information
is no longer followed by an empty line, though, but by child node
information, so limit the range by "Child node '/file':".
- 302: Calls qemu_img() for qemu-img info directly, which does not
filter the output, so the child node information ends up in the
output.
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Message-Id: <20220620162704.80987-12-hreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2022-06-20 19:27:03 +03:00
|
|
|
disk size: unavailable
|
2020-07-28 00:58:46 +03:00
|
|
|
|
|
|
|
=== Converted image info ===
|
2021-12-23 19:01:36 +03:00
|
|
|
image: TEST_IMG
|
|
|
|
file format: IMGFMT
|
2020-07-28 00:58:46 +03:00
|
|
|
virtual size: 1 GiB (1073741824 bytes)
|
|
|
|
cluster_size: 65536
|
|
|
|
Format specific information:
|
|
|
|
compat: 1.1
|
2021-12-23 19:01:36 +03:00
|
|
|
compression type: COMPRESSION_TYPE
|
2020-07-28 00:58:46 +03:00
|
|
|
lazy refcounts: false
|
|
|
|
refcount bits: 16
|
|
|
|
corrupt: false
|
2020-07-10 19:13:13 +03:00
|
|
|
extended l2: false
|
2020-07-28 00:58:46 +03:00
|
|
|
|
|
|
|
=== Converted image check ===
|
|
|
|
No errors were found on the image.
|
|
|
|
1/16384 = 0.01% allocated, 100.00% fragmented, 100.00% compressed clusters
|
|
|
|
Image end offset: 393216
|
|
|
|
|
|
|
|
=== Comparing to source disk ===
|
|
|
|
Images are identical.
|
|
|
|
|
|
|
|
Kill NBD server
|
|
|
|
=== OVA file contents ===
|
|
|
|
[{"name": "vm.ovf", "offset": 512, "size": 6}, {"name": "disk", "offset": 1536, "size": 393216}]
|