]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: add `rgw-orphan-list` tool & `radosgw-admin bucket radoslist ...`
authorJ. Eric Ivancich <ivancich@redhat.com>
Wed, 18 Sep 2019 22:25:50 +0000 (18:25 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Wed, 15 Jul 2020 16:17:51 +0000 (12:17 -0400)
commit36738bf388f99d984ed1b366e818051275d7af6a
tree073b8ecd834447c340c9c80e3638a3d680f35a9f
parentab2f235e93df03e32d0b7fd8130b243632c3048c
rgw: add `rgw-orphan-list` tool & `radosgw-admin bucket radoslist ...`

Adds a radosgw-admin subcommand and possibly a bucket name (if not,
all buckets are assumed) and walks the bucket(s) listing(s) and the
manifest (if it exists) for each object in the listing to generate the
rados objects that represent the rgw objects in the bucket.

Also adds a tool named rgw-orphan-list that will produce a list in a
local file of what appear to be rgw orphans.

NOTE: This is not a cherry-pick from master because the feature was
originally written for an older version of Ceph and is being gradually
forward-ported to newer and newer versions.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
12 files changed:
ceph.spec.in
debian/radosgw.install
src/rgw/CMakeLists.txt
src/rgw/rgw-orphan-list [new file with mode: 0755]
src/rgw/rgw_admin.cc
src/rgw/rgw_op.h
src/rgw/rgw_orphan.cc
src/rgw/rgw_orphan.h
src/rgw/rgw_rados.h
src/test/cli/radosgw-admin/help.t
src/tools/CMakeLists.txt
src/tools/ceph-diff-sorted.cc [new file with mode: 0644]