This was supposed to be the first part of a series allowing to override the cache mode for backing files, and more specifically to support the test cases for that series.
However, this work turned out to be a bit more complicated than I had hoped, and the query improvement is nice to have on its own, so I'm sending this out as a standalone series. Kevin Wolf (6): block/qapi: Add cache information to query-block block: Add optional device argument to query-block block: Introduce query-block-node block/hmp: Factor out print_block_info() block/hmp: Allow info = NULL in print_block_info() block: Allow node-name in HMP 'info block' block.c | 15 +++- block/qapi.c | 25 +++++- blockdev.c | 8 +- hmp.c | 208 ++++++++++++++++++++++++++------------------- include/block/block.h | 2 +- qapi/block-core.json | 31 +++++-- tests/qemu-iotests/051.out | 1 + tests/qemu-iotests/067.out | 10 +-- 8 files changed, 196 insertions(+), 104 deletions(-) -- 1.8.3.1