rbd: fix offset overflow on Windows

The rbd-wnbd daemon overflows when writing passed 4GB as the
offset field incorrectly uses uint32_t (initial versions of the
rbd-wnbd proposal used block increments).

This change updates the IO offset type to use uint64_t.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
This commit is contained in:
Lucian Petrut 2021-01-21 12:13:04 +00:00
parent 4b94acad0c
commit 784e0356ca

View File

@ -128,8 +128,8 @@ private:
WnbdRequestType req_type = WnbdReqTypeUnknown;
uint64_t req_handle = 0;
uint32_t err_code = 0;
uint32_t req_size;
uint32_t req_from;
size_t req_size;
uint64_t req_from;
bufferlist data;
IOContext()