]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: list accepts absolute dev names 6880/head
authorLoic Dachary <ldachary@redhat.com>
Tue, 5 Jan 2016 16:33:45 +0000 (17:33 +0100)
committerLoic Dachary <ldachary@redhat.com>
Thu, 7 Jan 2016 14:33:18 +0000 (15:33 +0100)
commit399b7c5409d9801aa7f38533dd8b7c19c726a594
tree73bc8f7e50a6774db890d405ad417f641ac9ce8e
parente222d7bce218b732025ce094ed2d1bb31af0d6f6
ceph-disk: list accepts absolute dev names

The ceph-disk list subcommand now accepts /dev/sda as well as sda.
The filtering is done on the full list of devices instead of restricting
the number of devices explored. Always obtaining the full list of
devices makes things simpler when trying to match a dmcrypted device to
the corresponding raw device.

Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit 591d581c84cfd72d7c655ac88b0911a318b96e95)

Conflicts:
src/ceph-disk: as part of the implementation of deactivate /
destroy in master, the prototype of list_device was changed
        to take a list of paths instead of the all arguments (args).
src/ceph-disk
src/test/python/ceph-disk/tests/test_ceph_disk.py