mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
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:
parent
4b94acad0c
commit
784e0356ca
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user