]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw_file: invalid use of RGWFileHandle::FLAG_EXACT_MATCH
authorMatt Benjamin <mbenjamin@redhat.com>
Sun, 19 Feb 2017 22:43:17 +0000 (17:43 -0500)
committerNathan Cutler <ncutler@suse.com>
Wed, 8 Mar 2017 12:08:58 +0000 (13:08 +0100)
commit9b3784d924112d9ba42b2088d5fb2656ef74fadc
tree9830416715168c640844ae45b4808fe2813a666b
parent7761376c92eb38a2dd3d19f0b3d81895a4b1167c
rgw_file: invalid use of RGWFileHandle::FLAG_EXACT_MATCH

The change which introduced this flag also caused it to be
given as the flags argument to RGWLibFS::stat_leaf() when called
from rgw_lookup().

This was incorrect:  in particular, when a directory is known only
as a common prefix of other objects, the AWS namespace mapping
convention requires lookup("foo") to match a non-materialized
instance of "foo/" (case 2 in RGWLibFS::stat_leaf's stat loop).

Fixes: http://tracker.ceph.com/issues/18992
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit e31e9eb980f958640150e8d7f17de1b9e5478b1e)
src/rgw/rgw_file.cc