From: Matt Benjamin Date: Fri, 13 Jul 2018 21:35:05 +0000 (-0400) Subject: rgw_file: deep stat handling X-Git-Tag: v13.2.2~96^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F23498%2Fhead;p=ceph.git rgw_file: deep stat handling A change to the exact-match behavior in leaf stat operations is required to support instantiation of a full path hierarchy when one or more intervening directories has not been enumerated. Fixes: http://tracker.ceph.com/issues/24915 Signed-off-by: Matt Benjamin (cherry picked from commit bca1b099735dd74908ca9b1cf509c7afcbd7e3db) --- diff --git a/src/rgw/rgw_file.h b/src/rgw/rgw_file.h index b83761fb5ee..901252d7770 100644 --- a/src/rgw/rgw_file.h +++ b/src/rgw/rgw_file.h @@ -2265,6 +2265,9 @@ public: << " target = " << path << "" << dendl; matched = true; + /* match-dir case (trailing '/') */ + if (name == prefix + "/") + exact_matched = true; is_dir = true; break; }