]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume util.disk fix issue when capturing partition information
authorAlfredo Deza <adeza@redhat.com>
Tue, 27 Nov 2018 14:26:33 +0000 (09:26 -0500)
committerAlfredo Deza <adeza@redhat.com>
Fri, 30 Nov 2018 19:07:34 +0000 (14:07 -0500)
commit4317fe44fc544deb673881d8b92cca11c546d2d3
treea98a81f269dbe601f7956204626f533fe9d7de47
parent24d005dfc89cdb8e7d466f829feaa745ec920522
ceph-volume util.disk fix issue when capturing partition information

Before, the `if` condition meant that it would only work when the output
was '1', which is incorrect as that would only happen if a partition was
the first one, ignoring any other partition. The contents of that file
is the partition number, not a boolean to tell if it is a partition or
not.

It now includes the `holders` file contents which is needed for
dm-mapper work

Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit 28cb13a970909dc8efe508aee18f47e0fb3fdde3)
src/ceph-volume/ceph_volume/util/disk.py