]> git-server-git.apps.pok.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)
committerLoic Dachary <ldachary@redhat.com>
Fri, 5 Dec 2014 12:01:36 +0000 (13:01 +0100)
commitc69aaceac7f370e5369d511bf17898adc338ae43
tree6919c08c13e6179ee80e20fd5bedf750d6795dd1
parent7c1165f96391821c00cca1ac04b3433dbec6bb6e
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>
src/tools/ceph_objectstore_tool.cc