]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw_file: implement rgw_setattr
authorMatt Benjamin <mbenjamin@redhat.com>
Thu, 14 Apr 2016 23:18:37 +0000 (19:18 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Wed, 5 Oct 2016 17:14:19 +0000 (13:14 -0400)
commit345de45cbf5932174222b733bf71820e818fbfd5
tree05704730b3bed219caaea3222513f2af605438ca
parent88b5027850618f14c562d07ba25a664fd4c22771
rgw_file: implement rgw_setattr

Introduce a new RGWSetattrs RGWOp descendant, to create or replace
sets of attrs on buckets or objects.

This version of the change uses the standard RGWRADOS::set_attrs op
(we want attribute changes to (e.g.) sync with other changes).

Previous versions of this changed incorrectly masked the values
of st->st_ino in RGWFileHandle::stat(), now fixed.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit 4de1c3c260265f821ebee842d49cb35bf49d8e4e)
src/cls/rgw/cls_rgw_ops.h
src/include/rados/librados.hpp
src/librados/librados.cc
src/rgw/rgw_common.h
src/rgw/rgw_file.cc
src/rgw/rgw_file.h
src/rgw/rgw_op.cc
src/rgw/rgw_op.h
src/test/librgw_file_nfsns.cc