]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: "osd pool application ls" support 17472/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 9 Aug 2017 13:24:49 +0000 (21:24 +0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 5 Sep 2017 09:30:28 +0000 (11:30 +0200)
commite2cc9ef48a7f7a2014c211a3baa10e7ac1a1a8a7
tree2def8b16120febd7ae98022eb7cb6d68789d2a3a
parent823585311c41729309809690a7df5cb83c4ece12
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>
(cherry picked from commit 46586b22882c0c08c099243e189f5a165063da0c)
qa/workunits/cephtool/test.sh
src/mon/MonCommands.h
src/mon/OSDMonitor.cc