Add function to get root filehandle from a nfs context
[deb_libnfs.git] / lib / libnfs.c
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;
+}