]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librgw: rgw_getattr refactor, RGWLibFS::stat_leaf (object)
authorMatt Benjamin <mbenjamin@redhat.com>
Tue, 12 Jan 2016 01:57:14 +0000 (20:57 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 17:07:55 +0000 (12:07 -0500)
commit441bff73c282af4c7fbeb21fdfdd6ef35bdfbd08
tree0e5423054b584ca259041b06c55b31419a7b45d6
parentce62d805953c95159c36155fa1cfc6f9cb202ea5
librgw: rgw_getattr refactor, RGWLibFS::stat_leaf (object)

Rewrite rgw_getattr to just dispatch into RGWLibFS::getattr, where
we can better use RGWFileHandle and RGWLibFS internals.

Initially, this change intended to dispatch a new RGWStatObjRequest
in the file case, but during implementation, discovered that in
(apparently) all file cases, it has already been done--but the path
had stopped working with the naming change.

Current GETATTR_DIRS1 unit test, when repeated so relying on lookup
(rather than saving size after rgw_write/rgw_close), passes.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_file.cc
src/rgw/rgw_file.h
src/test/librgw_file_nfsns.cc