Add function to get root filehandle from a nfs context

libnfs-4.0.0-vitalif
Ronnie Sahlberg 2012-01-11 07:04:01 +11:00
parent e6cac86f77
commit 8724c83390
2 changed files with 4 additions and 0 deletions

View 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);

View 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;
}