]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: Fix disk size calculation 47945/head
authorPaul Cuzner <pcuzner@redhat.com>
Mon, 29 Aug 2022 23:54:00 +0000 (11:54 +1200)
committerAdam King <adking@redhat.com>
Sat, 3 Sep 2022 17:05:13 +0000 (13:05 -0400)
commit3686e87033e84fe894777f210a07d00cc8b85af0
tree5752713b633804ed0e2e4b7c18d2225ab5e3cb6d
parent3252d0c7063f36223b01a43f35687a003b885baa
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