qemu-img info provides only pretty general information about an image. For any image format, there might be specific options which cannot be represented in a universal way; for instance, qcow2 provides the compatibility and lazy_refcount options whose values are certainly interesting but currently cannot be output by qemu-img info.
Therefore, this series adds an info-string field to ImageInfo resp. info_string to BlockDriverInfo which may be used by block drivers to hand an uninterpreted string to the user. It also adds support to qemu-img info and qemu-io -c info to dump that field's value. Max Reitz (3): block: Additional info string in ImageInfo and BDI qemu-iotests: info-string filter in _img_info qemu-iotests: Additional info from qemu-img info block.c | 3 +- block/mirror.c | 6 ++-- block/qapi.c | 10 +++++- block/qcow2.c | 6 ++++ include/block/block.h | 2 ++ qapi-schema.json | 5 ++- qemu-img.c | 3 +- qemu-io-cmds.c | 7 ++++- tests/qemu-iotests/064 | 72 ++++++++++++++++++++++++++++++++++++++++++++ tests/qemu-iotests/064.out | 17 +++++++++++ tests/qemu-iotests/common.rc | 4 ++- tests/qemu-iotests/group | 1 + 12 files changed, 128 insertions(+), 8 deletions(-) create mode 100755 tests/qemu-iotests/064 create mode 100644 tests/qemu-iotests/064.out -- 1.8.3.1