]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: Fix disk size calculation 48098/head
authorPaul Cuzner <pcuzner@redhat.com>
Mon, 29 Aug 2022 23:54:00 +0000 (11:54 +1200)
committerAdam King <adking@redhat.com>
Wed, 14 Sep 2022 19:20:34 +0000 (15:20 -0400)
commit19eb0e389ddea4297beafcf06e78111e926d53f6
tree011e54ecdc245a7620bda4160fad5c37c143b26b
parent2a08bf128ff1ff559c9771b2fd0f0a59a72367b7
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>
(cherry picked from commit a6f10ebd572cbf95c94614a94f981ca3550fca25)
src/cephadm/cephadm