summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorAndrey Kuznetsov <Andrey_Kuznetsov@epam.com>2013-07-10 14:25:49 -0700
committerSage Weil <sage@inktank.com>2013-09-04 17:53:30 -0700
commit9e68497ec7f4e51f8b1f6df011a56d5a2236f217 (patch)
treed088c442b2202f718e8e7c87e83eb71dcd09a334 /src/client
parent8750bc39e2430f862afcd2594ce00647b0300fa6 (diff)
downloadceph-9e68497ec7f4e51f8b1f6df011a56d5a2236f217.tar.gz
libcephfs: add ceph_ll_lookup_root()
Signed-off-by: Andrey Kuznetsov <Andrey_Kuznetsov@epam.com>
Diffstat (limited to 'src/client')
-rw-r--r--src/client/Client.cc6
-rw-r--r--src/client/Client.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/client/Client.cc b/src/client/Client.cc
index d6fcb0f51a1..8b9185165f1 100644
--- a/src/client/Client.cc
+++ b/src/client/Client.cc
@@ -256,6 +256,12 @@ inodeno_t Client::get_root_ino()
return root->ino;
}
+Inode *Client::get_root()
+{
+ root->ll_get();
+ return root;
+}
+
// debug crapola
diff --git a/src/client/Client.h b/src/client/Client.h
index b9d83cc2a70..baeb8d5ebdb 100644
--- a/src/client/Client.h
+++ b/src/client/Client.h
@@ -419,6 +419,7 @@ protected:
client_t get_nodeid() { return whoami; }
inodeno_t get_root_ino();
+ Inode *get_root();
int init() WARN_UNUSED_RESULT;
void shutdown();