> On 10 Feb 2018, at 18:43, Alex Bligh <a...@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