]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw_file: introduce fast S3 Unix stats (immutable) 28664/head
authorMatt Benjamin <mbenjamin@redhat.com>
Wed, 19 Jun 2019 18:43:38 +0000 (14:43 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 28 Jun 2019 20:29:56 +0000 (16:29 -0400)
commit6bf2786d28bad9c5269d07e00142b57b287089f0
tree95e31258201f53c71f90abbae865458cf03652d7
parentda1bc86c16e2f892d1b0d35205e22b2f04363a36
rgw_file: introduce fast S3 Unix stats (immutable)

For objects originating in S3/Swift, it is frequently acceptable
to synthesize c/mtime and size stats from meta attributes in the RGW
bucket index entry.

Synthetic stat behavior is not compatible with mutation of file
ownership and permissions via SETATTR.  In future, current xattr-based,
mutable, Unix stats may be moved to the bucket index.  For now, use
synthetic stats only when a new option rgw_nfs_s3_fast_attrs is present.

Fixes: http://tracker.ceph.com/issues/40456
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/common/legacy_config_opts.h
src/common/options.cc
src/include/rados/rgw_file.h
src/pybind/rgw/rgw.pyx
src/rgw/rgw_file.cc
src/rgw/rgw_file.h
src/test/librgw_file.cc
src/test/librgw_file_aw.cc
src/test/librgw_file_gp.cc
src/test/librgw_file_marker.cc
src/test/librgw_file_nfsns.cc