[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Qemu-devel] [PATCH 1/1] nbd: increase maximum size of the PWRITE_ZERO request

> On 10 Feb 2018, at 18:43, Alex Bligh <alex@alex.org.uk> wrote:
> So I think a reasonable logic for Qemu would be to try NBD_CMD_INFO and find the maximum write size, and if that's unsupported use 0xffffffff (capping at export size, or export size minus write offset).

Ur actually capping it at (2^16 - blocksize) would be the right thing to do (writes should be multiples of the block size).

Alex Bligh

Reply to: