]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd: fix offset overflow on Windows 39022/head
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 21 Jan 2021 12:13:04 +0000 (12:13 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 22 Jan 2021 11:50:25 +0000 (11:50 +0000)
commit784e0356cac3dbf4935ef5afe088d98e4a3577d8
treea6a19ebd79e0d3ce8e543377b5f8aee8e91e7308
parent4b94acad0c41d20cdae48e01fbbc1ae26229c75b
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>
src/tools/rbd_wnbd/wnbd_handler.h