From: Ronnie Sahlberg Date: Tue, 10 Jan 2012 20:04:01 +0000 (+1100) Subject: Add function to get root filehandle from a nfs context X-Git-Tag: upstream/1.9.6^2~274 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=8724c83390faff7cb576c567540715b1f315bd37;p=deb_libnfs.git Add function to get root filehandle from a nfs context --- diff --git a/include/libnfs-private.h b/include/libnfs-private.h index b1fe134..29f0406 100644 --- a/include/libnfs-private.h +++ b/include/libnfs-private.h @@ -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); diff --git a/lib/libnfs.c b/lib/libnfs.c index ace4466..8c7ad4e 100644 --- a/lib/libnfs.c +++ b/lib/libnfs.c @@ -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; +}