]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_file: deep stat handling 23038/head
authorMatt Benjamin <mbenjamin@redhat.com>
Fri, 13 Jul 2018 21:35:05 +0000 (17:35 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 13 Jul 2018 21:35:05 +0000 (17:35 -0400)
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 <mbenjamin@redhat.com>
src/rgw/rgw_file.h

index e65acc79b4dd4799d2d7da804b1ab281ce3c9504..6bbdb3f978f858a9746faf515a0498893a86344d 100644 (file)
@@ -2265,6 +2265,9 @@ public:
                             << " target = " << path << ""
                             << dendl;
       matched = true;
+      /* match-dir case (trailing '/') */
+      if (name == prefix + "/")
+       exact_matched = true;
       is_dir = true;
       break;
     }