[PATCH 1/2] Add analogous special case for "." directory alongside ".." in _lookup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Brian Chrisman <brchrisman@xxxxxxxxx>
---
 src/client/Client.cc |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/client/Client.cc b/src/client/Client.cc
index 10a6829..6ab4643 100644
--- a/src/client/Client.cc
+++ b/src/client/Client.cc
@@ -3267,6 +3267,11 @@ int Client::_lookup(Inode *dir, const string& dname, Inode **target)
     goto done;
   }
 
+  if (dname == ".") {
+    *target = dir;
+    goto done;
+  }
+
   if (dname.length() > NAME_MAX) {
     r = -ENAMETOOLONG;
     goto done;
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux