iotests: Test NBD client reconnection

The test for an NBD client. The NBD server is disconnected after the
client write request. The NBD client should reconnect and complete
the write operation.

Suggested-by: Denis V. Lunev <den@openvz.org>
Suggested-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Tested-by: Eric Blake <eblake@redhat.com>
Message-Id: <1573529976-815699-1-git-send-email-andrey.shinkevich@virtuozzo.com>
This commit is contained in:
Andrey Shinkevich 2019-11-12 06:39:36 +03:00 committed by Eric Blake
parent a5c2a23510
commit a4d925f8f0
5 changed files with 110 additions and 1 deletions

View file

@ -0,0 +1,6 @@
NBD server: started
NBD client: QEMU-IO write
NBD server: Closing connection on rule match inject-error
NBD server: started
NBD client: wrote 3145728/3145728 bytes at offset 0
NBD server: Closing connection on rule match inject-error