]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: swift: ability to update swift read and write acls separately. 14499/head
authorMarcus Watts <mwatts@redhat.com>
Thu, 13 Apr 2017 08:13:31 +0000 (04:13 -0400)
committerMarcus Watts <mwatts@redhat.com>
Fri, 21 Apr 2017 22:24:37 +0000 (18:24 -0400)
commit93c705db2f9b92ff634886f7740178055247890d
tree45e936771662fd0b09476a86be0d3aac3e51cdad
parent4100803cfe973baa58e1c869b8ceaff24e86a31f
rgw: swift: ability to update swift read and write acls separately.

openstack swift stores read and write acls as separate attributes
which can be updated independently.  Ceph stores acls in one merged
structure.  To emulate swift behavior, when updating an acl, take
the old acl and merge the unmodified bits into the replacement acl.

Fixes: http://tracker.ceph.com/issues/19289
Signed-off-by: Marcus Watts <mwatts@redhat.com>
src/rgw/rgw_acl_swift.cc
src/rgw/rgw_acl_swift.h
src/rgw/rgw_op.cc
src/rgw/rgw_op.h
src/rgw/rgw_rest_swift.cc