From 71b4474b7046f14f56586cd300217851205535fc Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Fri, 7 Mar 2014 07:12:39 +0800 Subject: [PATCH] client: fix Client::getcwd() 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 --- src/client/Client.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/Client.cc b/src/client/Client.cc index 699d369a5416..554732745b7a 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -6558,7 +6558,7 @@ void Client::getcwd(string& dir) 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); -- 2.47.3