]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw_file: introduce fast S3 Unix stats (immutable) 29952/head 29953/head 29954/head
authorMatt Benjamin <mbenjamin@redhat.com>
Wed, 19 Jun 2019 18:43:38 +0000 (14:43 -0400)
committerNathan Cutler <ncutler@suse.com>
Wed, 28 Aug 2019 13:21:12 +0000 (15:21 +0200)
commit62139b60fa8b2f26f1199c790aac22bb03575fa0
tree89e57e2ca7572c759686acdb04ecf8219500f151
parent8024fa1c6b7a57dd9376199225c889fb0b6241dd
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>
(cherry picked from commit 6bf2786d28bad9c5269d07e00142b57b287089f0)
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