]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: bluestore list
authorLoic Dachary <ldachary@redhat.com>
Thu, 28 Jan 2016 04:12:47 +0000 (11:12 +0700)
committerLoic Dachary <ldachary@redhat.com>
Thu, 4 Feb 2016 10:01:46 +0000 (17:01 +0700)
commitcfea72ee526a0af36f966bc9c851505fd9398471
tree18ef796e0d0c5c3d427dc213f5f47e2359a5c477
parentfbc0984b6e493123fb3ca5ea3848c1fa162b8b8b
ceph-disk: bluestore list

The objectstore journal and the bluestore block auxiliary device are
handled in the same way. Each occurrence of journal in the code is
replaced with a variable.

A few helpers are added to the Ptype class to factorize the most common
lookups but the code logic is unmodified with one exception: the
more_osd_info previously added a journal_uuid entry regarless. If there
was no journal_uuid file, it would be None. It is changed to only add
the {block,journal}_uuid entry if the corresponding file exist.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/ceph-disk/ceph_disk/main.py
src/ceph-disk/tests/test_main.py