Re: [Nbd] [PATCH] nbd: set the max segment size to UINT_MAX
> On 17 Apr 2017, at 15:44, Josef Bacik <josef@...2877...> wrote:
> NBD doesn't care about limiting the segment size, let the user push the
> largest bio's they want. This allows us to control the request size
> solely through max_sectors_kb.
I'm a bit lost around the various knobs in the kernel for maximum block
sizes, but note that the NBD protocol is (with an extension, soon
to be made mainstream by the looks of it) capable of negotiating
block size minima, maxima and preferred sizes - see here:
These are server block sizes (obviously) which would normally be passed
from userland client to kernel client via an ioctl. I suspect such
ioctls may not be implemented at the moment, and kernel support for
them would be much appreciated.