]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd: fix Windows block count overflow
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 27 Jan 2021 08:30:54 +0000 (08:30 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 5 Feb 2021 07:52:03 +0000 (07:52 +0000)
commit8fbcd85a1dcff43c609be5e59f17564b026f1549
tree4914b133d39afa61889a7439740195f13b64fad3
parentd939450b71a92346e91cd6065b3b47197cba9aff
rbd: fix Windows block count overflow

rbd-wnbd uses uint32_t for storing the image total block count,
which will overflow for >2TB images that are using 512B blocks.

This patch will switch to a uint64_t.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
(cherry picked from commit 6dc45eea209e1d3b2262a5d8d04d145adc7708a6)
src/tools/rbd_wnbd/wnbd_handler.h