X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=lib%2Flibnfs.c;h=6a70f4b609432f547f7a1ac444dfcc8639179614;hb=c4ba61c51ccaee6515c5f34b784fc461106574c0;hp=029c9c94d1f82795a5104e456caec30fdbbc4e3e;hpb=8aab33e33c541a8ac66c031d9b6f7b7f764143ed;p=deb_libnfs.git diff --git a/lib/libnfs.c b/lib/libnfs.c index 029c9c9..6a70f4b 100644 --- a/lib/libnfs.c +++ b/lib/libnfs.c @@ -610,6 +610,7 @@ static void nfs_mount_8_cb(struct rpc_context *rpc, int status, void *command_da { struct nfs_cb_data *data = private_data; struct nfs_context *nfs = data->nfs; + struct FSINFO3args args; assert(rpc->magic == RPC_CONTEXT_MAGIC); @@ -624,7 +625,8 @@ static void nfs_mount_8_cb(struct rpc_context *rpc, int status, void *command_da return; } - if (rpc_nfs_fsinfo_async(rpc, nfs_mount_9_cb, &nfs->rootfh, data) != 0) { + args.fsroot = nfs->rootfh; + if (rpc_nfs3_fsinfo_async(rpc, nfs_mount_9_cb, &args, data) != 0) { data->cb(-ENOMEM, nfs, command_data, data->private_data); free_nfs_cb_data(data); return;