]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw_file: expose RGW user-defined attributes
authorMatt Benjamin <mbenjamin@redhat.com>
Tue, 31 Jul 2018 14:39:54 +0000 (10:39 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 4 Dec 2020 15:39:42 +0000 (10:39 -0500)
commitd2943646b6e44613f09557f7b7696af5c5fd5175
tree6c43013a4eefa1412915e94966a01e32fc8e1612
parent7315f4c487b910c903c1780a2a83173050672608
rgw_file:  expose RGW user-defined attributes

Permit nfsv4.2-style operations on RGW's user-defined attributes
(only).

RGW requires that user-defined attribute keys are prefixed
with RGW_ATTR_META_PREFIX.  Add/remove this prefix automagically
when storing/retrieving.

A special set of read-only,  internal attributes--currently just
user.rgw.etag--will be sent with lsxattrs() result.

Adds librgw_file_xattr fixture with unit tests for setxattrs,
getxattrs, lsxattrs, rmxattrs.

rgw_file: fix exposed_xattr support

Also extends the unit test to cover the missed cases.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/include/rados/rgw_file.h
src/rgw/rgw_file.cc
src/rgw/rgw_file.h
src/rgw/rgw_op.cc
src/rgw/rgw_op.h
src/rgw/rgw_op_type.h
src/test/CMakeLists.txt
src/test/librgw_file_xattr.cc [new file with mode: 0644]