]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/OSDMonitor: "osd pool application ls" support
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 9 Aug 2017 13:24:49 +0000 (21:24 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 16 Aug 2017 01:41:11 +0000 (09:41 +0800)
commit46586b22882c0c08c099243e189f5a165063da0c
tree6c79552a8bed677c9cdad4adb10c932c26c6a415
parentc8c837f665edc6e32efda5f15dedd8a48698214a
mon/OSDMonitor: "osd pool application ls" support

It would be a pain if we have to call 'ceph osd dump --format=json-pretty'
to find out these each time...

Demo output:
(1) ceph osd pool application get
{
    "cephfs_data_b": {
        "cephfs": {}
    },
    "cephfs_metadata_a": {
        "cephfs": {}
    },
    "test_pool": {
        "rbd": {
            "test": "me"
        }
    }
}

(2) ceph osd pool application get test_pool
{
    "rbd": {
        "test": "me"
    }
}

(3) ceph osd pool application get test_pool rbd
{
    "test": "me"
}

(4) ceph osd pool application get test_pool rbd test
me

Fixes: http://tracker.ceph.com/issues/20976
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
qa/workunits/cephtool/test.sh
src/mon/MonCommands.h
src/mon/OSDMonitor.cc