]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
objectstore_tool: filter --op list and explore all PGs
authorLoic Dachary <ldachary@redhat.com>
Wed, 26 Nov 2014 22:35:21 +0000 (23:35 +0100)
committerDavid Zafman <dzafman@redhat.com>
Tue, 3 Mar 2015 19:20:58 +0000 (11:20 -0800)
commitfce87c9d7dbb51989826d068d6b6657a2f3d129d
treedb06699d96963b6dd1539d276ead930130a32f77
parent2f874fd3715d216a68658e94a5c741e665c76632
objectstore_tool: filter --op list and explore all PGs

The positional object name is used to filter the output of --op list and
only show the objects with a matching name. If both the object name and
the pgid are omitted, all objects from all PGs are displayed.

The output format is changed from

    {"oid":"GROUP","key":"","snapid":-2,
     "hash":2659194943,"max":0,"pool":0,"namespace":""}

to

    [["0.7_head",{"oid":"GROUP","key":"","snapid":-2,
                  "hash":2659194943,"max":0,"pool":0,
                  "namespace":""}]]

where the first member is the pgid where the object is found.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
(cherry picked from commit c69aaceac7f370e5369d511bf17898adc338ae43)
src/tools/ceph_objectstore_tool.cc