It only makes sense to pass url arguments to an nfs URL and thus a nfs context.
While some arguments may apply to the underlying raw rpc context (uid, gid,
tcp settings etc) some future arguments may need to apply to the nfs context
instead, such as selecting nfs version, whether or not to force sync writes
etc.
return rpc_get_error(nfs->rpc);
};
return rpc_get_error(nfs->rpc);
};
-int rpc_set_context_args(struct rpc_context *rpc, char *arg, char *val)
+static int nfs_set_context_args(struct nfs_context *nfs, char *arg, char *val)
{
if (!strncmp(arg, "tcp-syncnt", 10)) {
{
if (!strncmp(arg, "tcp-syncnt", 10)) {
- rpc_set_tcp_syncnt(rpc, atoi(val));
+ rpc_set_tcp_syncnt(nfs_get_rpc_context(nfs), atoi(val));
} else if (!strncmp(arg, "uid", 3)) {
} else if (!strncmp(arg, "uid", 3)) {
- rpc_set_uid(rpc, atoi(val));
+ rpc_set_uid(nfs_get_rpc_context(nfs), atoi(val));
} else if (!strncmp(arg, "gid", 3)) {
} else if (!strncmp(arg, "gid", 3)) {
- rpc_set_gid(rpc, atoi(val));
+ rpc_set_gid(nfs_get_rpc_context(nfs), atoi(val));
if (strp2) {
*strp2 = 0;
strp2++;
if (strp2) {
*strp2 = 0;
strp2++;
- rpc_set_context_args(nfs_get_rpc_context(nfs),
- strp, strp2);
+ nfs_set_context_args(nfs, strp, strp2);