]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgwlc: introduce lifecycle config flags extension
authorMatt Benjamin <mbenjamin@redhat.com>
Sat, 20 Nov 2021 18:45:51 +0000 (13:45 -0500)
committerMykola Golub <mgolub@suse.com>
Tue, 12 Dec 2023 09:47:25 +0000 (11:47 +0200)
commitd3de8ecaf6bb66b59ff55985c9eb7bba70a5df49
tree63725769ef756600e24de9d49593ae90f2eeb79c
parentbef78a51880cb7d25e258a6b00c26898788a1958
rgwlc: introduce lifecycle config flags extension

rgwlc: add uint32_t flags bitmap to LCFilter

This is intended to support a concise set of extensions to S3
LifecycleConfiguration, initially, just a flag that indicates a
rule is intended for execution on RGW ArchiveZone.

rgwlc: add machinery to define and recognize LCFilter flags

Add a concept of filter flags to lifecycle filter rules, an RGW
extension.  The initial purpose of flags is to permit marking
specific lifecycle rules as specific to an RGW archive zone, but
other flags could be added in future.

rgwlc: add new unittest_rgw_lc to run internal checks, add a few
valid and invalid lifecycle configuration xml  parses for now.

Fixes: https://tracker.ceph.com/issues/53361
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit 23a588da12aa498bb40e800ab1cb84656f2fc763)
src/rgw/rgw_lc.cc
src/rgw/rgw_lc.h
src/rgw/rgw_lc_s3.cc
src/rgw/rgw_lc_s3.h
src/test/rgw/CMakeLists.txt
src/test/rgw/test_rgw_lc.cc [new file with mode: 0644]