Re: [Qemu-devel] [PATCH V6 3/6] qemu-iotests: add 058 internal snapshot export with qemu-nbd case

2013-12-03 Thread Wenchao Xia
于 2013/12/3 21:45, Stefan Hajnoczi 写道: On Fri, Nov 22, 2013 at 12:27:09PM +0800, Wenchao Xia wrote: +nbd_snapshot_port=10850 +nbd_snapshot_img=nbd:127.0.0.1:$nbd_snapshot_port + +_export_nbd_snapshot() +{ +$QEMU_NBD -v -t -b 127.0.0.1 -p $nbd_snapshot_port $TEST_IMG -l $1 Please use a

[Qemu-devel] [PATCH V6 3/6] qemu-iotests: add 058 internal snapshot export with qemu-nbd case

2013-11-22 Thread Wenchao Xia
This case can't run when IMGPROTO=nbd, since it needs to create some internal snapshot which would fail for EOF write request, even when TEST_IMG is exported with -f raw in common.rc, so set _supported_proto to file. _require_command() is changed to tip what util is missing, instead of printing a