From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9GdB-00061N-4U for qemu-devel@nongnu.org; Fri, 31 Jan 2014 11:07:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W9Gd5-0000TZ-3P for qemu-devel@nongnu.org; Fri, 31 Jan 2014 11:07:49 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34637) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9Gd4-0000TQ-Rt for qemu-devel@nongnu.org; Fri, 31 Jan 2014 11:07:43 -0500 Date: Fri, 31 Jan 2014 17:07:20 +0100 From: Stefan Hajnoczi Message-ID: <20140131160720.GC15009@stefanha-thinkpad.redhat.com> References: <1391168333-11436-1-git-send-email-pl@kamp.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1391168333-11436-1-git-send-email-pl@kamp.de> Subject: Re: [Qemu-devel] [PATCHv8 0/5] block: add native support for NFS List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Lieven Cc: Kevin Wolf , benoit.canet@irqsave.net, Fam Zheng , Jeff Cody , qemu-devel@nongnu.org, Max Reitz , owasserm@redhat.com, Federico Simoncelli , ronniesahlberg@gmail.com, Wenchao Xia On Fri, Jan 31, 2014 at 12:38:48PM +0100, Peter Lieven wrote: > This adds v6 of the NFS protocol driver + qemu-iotest adjustments. > > v7->v8: > - bump libnfs requirement to 1.9.2 > - renamed NFSRPC->status to NFSRPC->ret [Benoit] > - avoid double invocation of nfs_client_close in nfs_file_create [Benoit] > - fixed error propagation in nfs_file_open [Benoit] I was able to create a qcow2 image and boot a VM successfully over NFS. I'm getting qemu-iotests failures: $ ./check -nfs -qcow2 071 1s ... - output mismatch (see 071.out.bad) --- 071.out 2014-01-31 13:14:07.066452661 +0100 +++ 071.out.bad 2014-01-31 16:41:52.824898587 +0100 @@ -4,29 +4,19 @@ Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 -read 512/512 bytes at offset 0 -512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -wrote 512/512 bytes at offset 229376 -512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -read 512/512 bytes at offset 229376 -512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +qemu-io: can't open device nfs://127.0.0.1//home/stefanha/qemu/tests/qemu-iotests/scratch/t.qcow2: Could not open 'nfs://127.0.0.1//home/stefanha/qemu/tests/qemu-iotests/scratch/t.qcow2.base': No such file or directory wrote 512/512 bytes at offset 0 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -blkverify: read sector_num=0 nb_sectors=4 contents mismatch in sector 0 +qemu-io: can't open device nfs://127.0.0.1//home/stefanha/qemu/tests/qemu-iotests/scratch/t.qcow2: Could not open 'nfs://127.0.0.1//home/stefanha/qemu/tests/qemu-iotests/scratch/t.qcow2.base': No such file or directory === Testing blkverify through file blockref === Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 -read 512/512 bytes at offset 0 -512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -wrote 512/512 bytes at offset 229376 -512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -read 512/512 bytes at offset 229376 -512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +qemu-io: can't open device (null): Could not open 'nfs://127.0.0.1//home/stefanha/qemu/tests/qemu-iotests/scratch/t.qcow2.base': No such file or directory wrote 512/512 bytes at offset 0 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -blkverify: read sector_num=0 nb_sectors=4 contents mismatch in sector 0 +qemu-io: can't open device nfs://127.0.0.1//home/stefanha/qemu/tests/qemu-iotests/scratch/t.qcow2: Could not open 'nfs://127.0.0.1//home/stefanha/qemu/tests/qemu-iotests/scratch/t.qcow2.base': No such file or directory === Testing blkdebug through filename === @@ -34,7 +24,7 @@ === Testing blkdebug through file blockref === -read failed: Input/output error +qemu-io: can't open device (null): Could not open 'nfs://127.0.0.1//home/stefanha/qemu/tests/qemu-iotests/scratch/t.qcow2': No such file or directory === Testing blkdebug on existing block device === @@ -55,8 +45,12 @@ Testing: -drive file=TEST_DIR/t.IMGFMT,format=IMGFMT,if=none,id=drive0 QMP_VERSION {"return": {}} +{"error": {"class": "GenericError", "desc": "could not open disk image drive0-verify: Could not open 'TEST_DIR/t.qcow2.base': No such file or directory"}} +{"return": "Device 'drive0-verify' not found\r\n"} {"return": {}} -blkverify: read sector_num=0 nb_sectors=1 contents mismatch in sector 0 +{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN"} +{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "DEVICE_TRAY_MOVED", "data": {"device": "ide1-cd0", "tray-open": true}} +{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "DEVICE_TRAY_MOVED", "data": {"device": "floppy0", "tray-open": true}} === Testing blkverify on existing raw block device === @@ -64,8 +58,12 @@ Testing: -drive file=TEST_DIR/t.IMGFMT.base,if=none,id=drive0 QMP_VERSION {"return": {}} +{"error": {"class": "GenericError", "desc": "could not open disk image drive0-verify: Could not open 'TEST_DIR/t.qcow2': No such file or directory"}} +{"return": "Device 'drive0-verify' not found\r\n"} {"return": {}} -blkverify: read sector_num=0 nb_sectors=1 contents mismatch in sector 0 +{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN"} +{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "DEVICE_TRAY_MOVED", "data": {"device": "ide1-cd0", "tray-open": true}} +{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "DEVICE_TRAY_MOVED", "data": {"device": "floppy0", "tray-open": true}} === Testing blkdebug's set-state through QMP === 072 1s ... - output mismatch (see 072.out.bad) --- 072.out 2014-01-31 13:14:07.066452661 +0100 +++ 072.out.bad 2014-01-31 16:41:53.285899409 +0100 @@ -9,12 +9,7 @@ 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) wrote 512/512 bytes at offset 1024 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -read 512/512 bytes at offset 0 -512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -read 512/512 bytes at offset 512 -512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -read 512/512 bytes at offset 1024 -512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +qemu-io: can't open device (null): Could not open 'nfs://127.0.0.1//home/stefanha/qemu/tests/qemu-iotests/scratch/t.qcow2': No such file or directory Pattern verification failed at offset 0, 512 bytes read 512/512 bytes at offset 0 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)