[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH for-4.0 v3 0/6] NBD server alignment improvement
From: |
Richard W.M. Jones |
Subject: |
Re: [Qemu-devel] [PATCH for-4.0 v3 0/6] NBD server alignment improvement |
Date: |
Fri, 29 Mar 2019 16:40:13 +0000 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
I tested this version of qemu against the nbdkit test suite and it
passed.
It also fixes the problem with qemu-img convert:
$ ./nbdkit -U - memory size=511 --run 'qemu-img convert $nbd /var/tmp/out'
There are a couple of issues though (I don't think you'll think they
are bugs).
Firstly it rounds up the size to 512 bytes. eg. /var/tmp/out above is
512 bytes, and qemu-img info shows the virtual size as 512 bytes.
Secondly I still can't open the INT64_MAX image which as you will
recall has a 511 byte tail:
$ ./nbdkit -U - memory size=$((2**63 - 1)) --run 'qemu-img info $nbd'
qemu-img: Could not open 'nbd:unix:/tmp/nbdkitTimYSJ/socket': Could not read
image for determining its format: File too large
... yet the 2^63-512 image can be opened (same as before):
$ ./nbdkit -U - memory size=$((2**63 - 512)) --run 'qemu-img info $nbd'
image: nbd+unix://?socket=/tmp/nbdkitHSAzNz/socket
file format: raw
virtual size: -8388607T (9223372036854775296 bytes)
disk size: unavailable
I've just noticed that the virtual size negative (also in upstream
qemu). That looks like a bug too ...
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages. http://libguestfs.org
- Re: [Qemu-devel] [PATCH v3 6/6] nbd/server: Advertise actual minimum block size, (continued)
- [Qemu-devel] [PATCH v3 3/6] nbd/client: Report offsets in bdrv_block_status, Eric Blake, 2019/03/29
- [Qemu-devel] [PATCH v3 2/6] nbd/client: Lower min_block for block-status, unaligned size, Eric Blake, 2019/03/29
- Re: [Qemu-devel] [PATCH for-4.0 v3 0/6] NBD server alignment improvement,
Richard W.M. Jones <=
- [Qemu-devel] [PATCH v3 7/6] nbd/client: Ignore inaccessible tail of inconsistent server, Eric Blake, 2019/03/29
- [Qemu-devel] [PATCH v3.1 3.5/6] nbd/client: Reject inaccessible tail of inconsistent server, Eric Blake, 2019/03/30
- [Qemu-devel] [PATCH v3 6.5/6] nbd/client: Trace server noncompliance on structured reads, Eric Blake, 2019/03/30