]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Wed, 3 Feb 2021 07:17:56 +0000 (07:17 +0000)
commit6dc45eea209e1d3b2262a5d8d04d145adc7708a6
tree6db84c6de39471612aa9d4c18c088088e1cecc87
parent7a2f9903fe97422da2baf602c426aabd0907973e
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>
src/tools/rbd_wnbd/wnbd_handler.h