Add function to get root filehandle from a nfs context
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 10 Jan 2012 20:04:01 +0000 (07:04 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 10 Jan 2012 20:04:01 +0000 (07:04 +1100)
include/libnfs-private.h
lib/libnfs.c

index b1fe13480dac57570d5c39c17f62706a0926cf45..29f04066a51dee23e2d10aa935ce9303f7656fb4 100644 (file)
@@ -104,3 +104,4 @@ void rpc_unset_autoreconnect(struct rpc_context *rpc);
 int rpc_add_fragment(struct rpc_context *rpc, char *data, uint64_t size);
 void rpc_free_all_fragments(struct rpc_context *rpc);
 
+const struct nfs_fh3 *nfs_get_rootfh(struct nfs_context *nfs);
index ace44668cfb02816c174a1662bb82bc05e0e08ae..8c7ad4e4476ca8ec2148ec9983079e89699cb455 100644 (file)
@@ -3512,3 +3512,6 @@ const char *nfs_get_export(struct nfs_context *nfs) {
        return nfs->export;
 }
 
+const struct nfs_fh3 *nfs_get_rootfh(struct nfs_context *nfs) {
+      return &nfs->rootfh;
+}