]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephadm: Fix disk size calculation
authorPaul Cuzner <pcuzner@redhat.com>
Mon, 29 Aug 2022 23:54:00 +0000 (11:54 +1200)
committerPaul Cuzner <pcuzner@redhat.com>
Mon, 29 Aug 2022 23:54:00 +0000 (11:54 +1200)
commita6f10ebd572cbf95c94614a94f981ca3550fca25
tree744ca79c224d2ed52772685ed3e74661330fa7dd
parent5444c986975a4990c25c8b9e18d5653d24ee03df
cephadm: Fix disk size calculation

With native 4k sectors, the logical blocksize is set to
4096, which yields a disk size 8x the size of the actual
device. According to kernel source, device size only
uses 512 byte sectors, so the use of logical blocksize
is unnecessary.

Fixes: https://tracker.ceph.com/issues/57335
Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
src/cephadm/cephadm