iotests: fix nbd test 233 to work correctly with raw images
commite4c8f2925d22584b2008aadea5c70e1e05c2a522
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 20 Nov 2018 17:56:46 +0000 (20 17:56 +0000)
committerKevin Wolf <kwolf@redhat.com>
Thu, 22 Nov 2018 15:43:52 +0000 (22 16:43 +0100)
tree6a14b37a552c20c4d0d1874bb035d28bc364ed95
parent2a3d4331fa2d40708188b8000f98ff1f7dcd33bc
iotests: fix nbd test 233 to work correctly with raw images

The first qemu-io command must honour the $IMGFMT that is set rather
than hardcoding qcow2. The qemu-nbd commands should also set $IMGFMT
to avoid the insecure format probe warning.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/233