qemu-devel
[Top][All Lists]
Advanced

[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_ZE


From: Alex Bligh
Subject: Re: [Qemu-devel] [PATCH 1/1] nbd: increase maximum size of the PWRITE_ZERO request
Date: Sat, 10 Feb 2018 18:45:55 +0100

> On 10 Feb 2018, at 18:43, Alex Bligh <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]