docs/tools/qemu-nbd.rst | 7 +- include/migration/qemu-file-types.h | 6 +- block.c | 13 +++- migration/block-dirty-bitmap.c | 62 ++++++++++++++-- migration/qemu-file.c | 5 +- nbd/client-connection.c | 32 +++++++++ qemu-img.c | 8 ++- qemu-nbd.c | 22 +++++- MAINTAINERS | 4 +- tests/qemu-iotests/026 | 10 +-- tests/qemu-iotests/026.out | 84 ++++++++++++++++++++++ tests/qemu-iotests/071 | 2 +- tests/qemu-iotests/071.out | 2 + tests/qemu-iotests/080.out | 2 + tests/qemu-iotests/098.out | 4 ++ tests/qemu-iotests/122 | 33 +++++++++ tests/qemu-iotests/122.out | 17 +++++ tests/qemu-iotests/244 | 2 +- tests/qemu-iotests/244.out | 1 + tests/qemu-iotests/iotests.py | 4 ++ tests/qemu-iotests/tests/file-io-error | 2 +- tests/qemu-iotests/tests/file-io-error.out | 2 + tests/qemu-iotests/tests/fuse-truncate | 9 ++- tests/qemu-iotests/tests/iothreads-nbd-export | 5 ++ .../tests/migrate-bitmaps-postcopy-test | 22 ++++++ tests/qemu-iotests/tests/nbd-in-qcow2-chain | 2 +- tests/qemu-iotests/tests/nbd-stale-connection | 62 ++++++++++++++++ tests/qemu-iotests/tests/nbd-stale-connection.out | 17 +++++ tests/qemu-iotests/tests/nbd-tls-iothread | 4 ++ tests/qemu-iotests/tests/qemu-nbd-snapshots | 81 +++++++++++++++++++++ tests/qemu-iotests/tests/qemu-nbd-snapshots.out | 39 ++++++++++ tests/qemu-iotests/tests/qsd-migrate | 5 +- tests/qemu-iotests/tests/qsd-migrate.out | 1 + 33 files changed, 538 insertions(+), 33 deletions(-) create mode 100755 tests/qemu-iotests/tests/nbd-stale-connection create mode 100644 tests/qemu-iotests/tests/nbd-stale-connection.out create mode 100755 tests/qemu-iotests/tests/qemu-nbd-snapshots create mode 100644 tests/qemu-iotests/tests/qemu-nbd-snapshots.out