]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: get Nonetype when ceph-disk list with --format plain on single device.
authorVicente Cheng <freeze.bilsted@gmail.com>
Wed, 28 Oct 2015 10:29:53 +0000 (18:29 +0800)
committerVicente Cheng <freeze.bilsted@gmail.com>
Wed, 28 Oct 2015 10:29:53 +0000 (18:29 +0800)
commit570285bd086643db8c1cacac9ebbafcd3a157cd2
treef2bbebc694d4b3085bb9dfecea44bb89f1539192
parent451e3d568addd29bfe05e44e7d229c9651cc43f7
ceph-disk: get Nonetype when ceph-disk list with --format plain on single device.

    with dmcrypt device, ceph-disk list will get Nonetype with the real device
    i.e. /dev/sdb1 for /dev/dm-1, `ceph-disk --list /dev/sdb1` will get Nonetype

    that because the holder we query is `dm-x`, the devices includ the path
    is `sdX`, it cannot match.

    if we list format plain and meet dmcrypt device, query again with the
    holder (dm-x).

    Also change the list_devices() parameter to let other function to use it
    easily.

Signed-off-by: Vicente Cheng <freeze.bilsted@gmail.com>
src/ceph-disk