From: Matt Benjamin Date: Fri, 13 Jul 2018 21:35:05 +0000 (-0400) Subject: rgw_file: deep stat handling X-Git-Tag: v14.0.1~856^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=bca1b099735dd74908ca9b1cf509c7afcbd7e3db;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 --- diff --git a/src/rgw/rgw_file.h b/src/rgw/rgw_file.h index e65acc79b4dd4..6bbdb3f978f85 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; }