An recent commit made MDS not include dentry trace in LOOKUPPARENT
reply. It broke Client::getcwd. The fix is change getcwd() to use
LOOKUPNAME MDS request
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
if (!dn) {
// look it up
ldout(cct, 10) << "getcwd looking up parent for " << *in << dendl;
- MetaRequest *req = new MetaRequest(CEPH_MDS_OP_LOOKUPPARENT);
+ MetaRequest *req = new MetaRequest(CEPH_MDS_OP_LOOKUPNAME);
filepath path(in->ino);
req->set_filepath(path);
req->set_inode(in);