]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw_file: introduce fast S3 Unix stats (immutable) 30077/head
authorMatt Benjamin <mbenjamin@redhat.com>
Wed, 19 Jun 2019 18:43:38 +0000 (14:43 -0400)
committerNathan Cutler <ncutler@suse.com>
Sun, 8 Sep 2019 10:32:58 +0000 (12:32 +0200)
commit1727412761531ee3fcf898668187f4cc9e160957
tree8b7d61f1f6c939513425bd28b67b56982b5705b7
parent84784a2466a7916f4b71d0f8eb905a8ec3018673
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)

Conflicts:
src/common/options.cc
src/pybind/rgw/rgw.pyx
src/rgw/rgw_file.cc
- no "MkObjResult RGWLibFS::symlink(...)" in mimic
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