This series allow user to read internal snapshot's contents without qemu-img convert.
V2: Address Stefan's comments: 02: add 'fall through' comments in the case statement. 03: add doc about the difference of internal snapshot and backing chain snapshot, which is used in previous '--snapshot' parameter. Other: 01,04: rebased on upstream with conflict resolved. Wenchao Xia (4): 1 snapshot: distinguish id and name in load_tmp 2 qemu-nbd: support internal snapshot export 3 qemu-nbd: add doc for internal snapshot export 4 qemu-iotests: add 058 internal snapshot export with qemu-nbd case block/qcow2-snapshot.c | 16 +++++++- block/qcow2.h | 5 ++- block/snapshot.c | 37 ++++++++++++++++++- include/block/block_int.h | 4 ++- include/block/snapshot.h | 4 ++- qemu-img.c | 14 ++++++- qemu-nbd.c | 62 ++++++++++++++++++++++++++++++- qemu-nbd.texi | 8 ++++- tests/qemu-iotests/058 | 87 ++++++++++++++++++++++++++++++++++++++++++++ tests/qemu-iotests/058.out | 26 +++++++++++++ tests/qemu-iotests/group | 1 + 11 files changed, 252 insertions(+), 12 deletions(-) create mode 100755 tests/qemu-iotests/058 create mode 100644 tests/qemu-iotests/058.out