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>
(cherry picked from commit
bca1b099735dd74908ca9b1cf509c7afcbd7e3db)
<< " target = " << path << ""
<< dendl;
matched = true;
+ /* match-dir case (trailing '/') */
+ if (name == prefix + "/")
+ exact_matched = true;
is_dir = true;
break;
}