]> git-server-git.apps.pok.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 18:26:03 +0000 (14:26 -0400)
commit0de33909012f2a8305ff2038906669c78070cbcd
tree082d47b8a43f237b55bae6ae5cd69895f6cdc57c
parent00f3fbe7dc940d8c9176a8da35fccd42e6ddc10f
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)

Fixes: http://tracker.ceph.com/issues/17311
Fixes: http://tracker.ceph.com/issues/17332
src/rgw/rgw_file.cc