From: Ronnie Sahlberg Date: Tue, 31 Dec 2013 23:08:11 +0000 (-0800) Subject: Change all calls to rpc_nfs_fsstat to rpc_nfs3_fsstat X-Git-Tag: upstream/1.9.6^2~152 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=0249c17be08e303a35ec7d2b3834abe27467a592;p=deb_libnfs.git Change all calls to rpc_nfs_fsstat to rpc_nfs3_fsstat --- diff --git a/lib/libnfs.c b/lib/libnfs.c index 6a70f4b..7026f26 100644 --- a/lib/libnfs.c +++ b/lib/libnfs.c @@ -2842,7 +2842,10 @@ static void nfs_statvfs_1_cb(struct rpc_context *rpc, int status, void *command_ static int nfs_statvfs_continue_internal(struct nfs_context *nfs, struct nfs_cb_data *data) { - if (rpc_nfs_fsstat_async(nfs->rpc, nfs_statvfs_1_cb, &data->fh, data) != 0) { + FSSTAT3args args; + + args.fsroot = data->fh; + if (rpc_nfs3_fsstat_async(nfs->rpc, nfs_statvfs_1_cb, &args, data) != 0) { rpc_set_error(nfs->rpc, "RPC error: Failed to send FSSTAT call for %s", data->path); data->cb(-ENOMEM, nfs, rpc_get_error(nfs->rpc), data->private_data); free_nfs_cb_data(data);