Re: [PATCH v5 04/17] nbd: Prepare for 64-bit request effect lengths

2023-08-28 Thread Eric Blake
On Thu, Aug 10, 2023 at 12:36:51PM -0500, Eric Blake wrote: > Widen the length field of NBDRequest to 64-bits, although we can > assert that all current uses are still under 32 bits: either because > of NBD_MAX_BUFFER_SIZE which is even smaller (and where size_t can > still be appropriate, even on

[PATCH v5 04/17] nbd: Prepare for 64-bit request effect lengths

2023-08-10 Thread Eric Blake
Widen the length field of NBDRequest to 64-bits, although we can assert that all current uses are still under 32 bits: either because of NBD_MAX_BUFFER_SIZE which is even smaller (and where size_t can still be appropriate, even on 32-bit platforms), or because nothing ever puts us into NBD_MODE_EXT