]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd: fix offset overflow on Windows
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 21 Jan 2021 12:13:04 +0000 (12:13 +0000)
committerJason Dillaman <dillaman@redhat.com>
Tue, 26 Jan 2021 14:52:55 +0000 (09:52 -0500)
commitd7b992bc169ff91d55e83eae65e9208e0432808e
tree7618c0094a1b94ddfccbe23c1932d76f06491a87
parent1290d5ca92015376bcb361b73130849e3c6271ac
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>
(cherry picked from commit 784e0356cac3dbf4935ef5afe088d98e4a3577d8)
src/tools/rbd_wnbd/wnbd_handler.h