Lines Matching full:server

48  * Per auth flavor data server rpc clients
129 * Find or create a DS rpc client with th MDS server rpc client auth flavor
237 * Set up the connection to the server before we add add to the in nfs4_alloc_client()
384 * The create session reply races with the server back in nfs41_init_client()
486 * "drop," but server trunking discovery claims "drop" and "keep" are
487 * actually the same server. Swap the callback IDs so that "keep"
488 * will continue to use the callback ident the server now knows about,
573 * nfs40_walk_client_list - Find server that recognizes a client ID
610 * caused the server to return a new cl_confirm. So if in nfs40_walk_client_list()
612 * server that just returned the same cl_confirm by in nfs40_walk_client_list()
621 * if new and pos point to the same server: in nfs40_walk_client_list()
658 /* No match found. The server lost our clientid */ in nfs40_walk_client_list()
666 * Returns true if the server major ids match
678 * Returns true if the server scopes match
740 * nfs41_walk_client_list - Find nfs_client that matches a client/server owner
795 static void nfs4_destroy_server(struct nfs_server *server) in nfs4_destroy_server() argument
799 nfs_server_return_all_delegations(server); in nfs4_destroy_server()
800 unset_pnfs_layoutdriver(server); in nfs4_destroy_server()
801 nfs4_purge_state_owners(server, &freeme); in nfs4_destroy_server()
895 static int nfs4_set_client(struct nfs_server *server, in nfs4_set_client() argument
916 .cred = server->cred, in nfs4_set_client()
932 if (server->flags & NFS_MOUNT_NORESVPORT) in nfs4_set_client()
934 if (server->options & NFS_OPTION_MIGRATION) in nfs4_set_client()
936 if (test_bit(NFS_MIG_TSM_POSSIBLE, &server->mig_status)) in nfs4_set_client()
938 server->port = rpc_get_port((struct sockaddr *)addr); in nfs4_set_client()
945 if (server->nfs_client == clp) { in nfs4_set_client()
959 server->nfs_client = clp; in nfs4_set_client()
960 nfs_sysfs_add_server(server); in nfs4_set_client()
961 nfs_sysfs_link_rpc_client(server, clp->cl_rpcclient, "_state"); in nfs4_set_client()
967 * Set up a pNFS Data Server client.
969 * Return any existing nfs_client that matches server address,port,version
1032 static void nfs4_session_limit_rwsize(struct nfs_server *server) in nfs4_session_limit_rwsize() argument
1039 if (!nfs4_has_session(server->nfs_client)) in nfs4_session_limit_rwsize()
1041 sess = server->nfs_client->cl_session; in nfs4_session_limit_rwsize()
1045 if (server->dtsize > server_resp_sz) in nfs4_session_limit_rwsize()
1046 server->dtsize = server_resp_sz; in nfs4_session_limit_rwsize()
1047 if (server->rsize > server_resp_sz) in nfs4_session_limit_rwsize()
1048 server->rsize = server_resp_sz; in nfs4_session_limit_rwsize()
1049 if (server->wsize > server_rqst_sz) in nfs4_session_limit_rwsize()
1050 server->wsize = server_rqst_sz; in nfs4_session_limit_rwsize()
1057 static void nfs4_session_limit_xasize(struct nfs_server *server) in nfs4_session_limit_xasize() argument
1065 if (!nfs4_has_session(server->nfs_client)) in nfs4_session_limit_xasize()
1068 sess = server->nfs_client->cl_session; in nfs4_session_limit_xasize()
1075 if (server->gxasize > server_gxa_sz) in nfs4_session_limit_xasize()
1076 server->gxasize = server_gxa_sz; in nfs4_session_limit_xasize()
1077 if (server->sxasize > server_sxa_sz) in nfs4_session_limit_xasize()
1078 server->sxasize = server_sxa_sz; in nfs4_session_limit_xasize()
1079 if (server->lxasize > server_lxa_sz) in nfs4_session_limit_xasize()
1080 server->lxasize = server_lxa_sz; in nfs4_session_limit_xasize()
1084 void nfs4_server_set_init_caps(struct nfs_server *server) in nfs4_server_set_init_caps() argument
1087 server->caps |= server->nfs_client->cl_mvops->init_caps; in nfs4_server_set_init_caps()
1088 if (server->flags & NFS_MOUNT_NORDIRPLUS) in nfs4_server_set_init_caps()
1089 server->caps &= ~NFS_CAP_READDIRPLUS; in nfs4_server_set_init_caps()
1090 if (server->nfs_client->cl_proto == XPRT_TRANSPORT_RDMA) in nfs4_server_set_init_caps()
1091 server->caps &= ~NFS_CAP_READ_PLUS; in nfs4_server_set_init_caps()
1098 server->client->cl_auth->au_flavor == RPC_AUTH_UNIX) in nfs4_server_set_init_caps()
1099 server->caps |= NFS_CAP_UIDGID_NOMAP; in nfs4_server_set_init_caps()
1102 static int nfs4_server_common_setup(struct nfs_server *server, in nfs4_server_common_setup() argument
1108 if (is_ds_only_client(server->nfs_client)) in nfs4_server_common_setup()
1112 error = nfs4_init_session(server->nfs_client); in nfs4_server_common_setup()
1116 nfs4_server_set_init_caps(server); in nfs4_server_common_setup()
1119 error = nfs4_get_rootfh(server, mntfh, auth_probe); in nfs4_server_common_setup()
1123 dprintk("Server FSID: %llx:%llx\n", in nfs4_server_common_setup()
1124 (unsigned long long) server->fsid.major, in nfs4_server_common_setup()
1125 (unsigned long long) server->fsid.minor); in nfs4_server_common_setup()
1128 error = nfs_probe_server(server, mntfh); in nfs4_server_common_setup()
1132 nfs4_session_limit_rwsize(server); in nfs4_server_common_setup()
1133 nfs4_session_limit_xasize(server); in nfs4_server_common_setup()
1135 if (server->namelen == 0 || server->namelen > NFS4_MAXNAMLEN) in nfs4_server_common_setup()
1136 server->namelen = NFS4_MAXNAMLEN; in nfs4_server_common_setup()
1138 nfs_server_insert_lists(server); in nfs4_server_common_setup()
1139 server->mount_time = jiffies; in nfs4_server_common_setup()
1140 server->destroy = nfs4_destroy_server; in nfs4_server_common_setup()
1148 static int nfs4_init_server(struct nfs_server *server, struct fs_context *fc) in nfs4_init_server() argument
1158 server->flags = ctx->flags; in nfs4_init_server()
1159 server->options = ctx->options; in nfs4_init_server()
1160 server->auth_info = ctx->auth_info; in nfs4_init_server()
1163 * allowed by the server, use the SECINFO path to try the in nfs4_init_server()
1171 error = nfs4_set_client(server, in nfs4_init_server()
1187 server->rsize = nfs_io_size(ctx->rsize, server->nfs_client->cl_proto); in nfs4_init_server()
1189 server->wsize = nfs_io_size(ctx->wsize, server->nfs_client->cl_proto); in nfs4_init_server()
1191 server->acregmin = ctx->acregmin * HZ; in nfs4_init_server()
1192 server->acregmax = ctx->acregmax * HZ; in nfs4_init_server()
1193 server->acdirmin = ctx->acdirmin * HZ; in nfs4_init_server()
1194 server->acdirmax = ctx->acdirmax * HZ; in nfs4_init_server()
1195 server->port = ctx->nfs_server.port; in nfs4_init_server()
1197 return nfs_init_server_rpcclient(server, &timeparms, in nfs4_init_server()
1203 * - keyed on server and FSID
1208 struct nfs_server *server; in nfs4_create_server() local
1212 server = nfs_alloc_server(); in nfs4_create_server()
1213 if (!server) in nfs4_create_server()
1216 server->cred = get_cred(fc->cred); in nfs4_create_server()
1221 error = nfs4_init_server(server, fc); in nfs4_create_server()
1225 error = nfs4_server_common_setup(server, ctx->mntfh, auth_probe); in nfs4_create_server()
1229 return server; in nfs4_create_server()
1232 nfs_free_server(server); in nfs4_create_server()
1237 * Create an NFS4 referral server record
1243 struct nfs_server *server, *parent_server; in nfs4_create_referral_server() local
1247 server = nfs_alloc_server(); in nfs4_create_referral_server()
1248 if (!server) in nfs4_create_referral_server()
1254 server->cred = get_cred(parent_server->cred); in nfs4_create_referral_server()
1256 /* Initialise the client representation from the parent server */ in nfs4_create_referral_server()
1257 nfs_server_copy_userdata(server, parent_server); in nfs4_create_referral_server()
1262 error = nfs4_set_client(server, in nfs4_create_referral_server()
1282 error = nfs4_set_client(server, in nfs4_create_referral_server()
1300 error = nfs_init_server_rpcclient(server, parent_server->client->cl_timeout, in nfs4_create_referral_server()
1307 error = nfs4_server_common_setup(server, ctx->mntfh, auth_probe); in nfs4_create_referral_server()
1311 return server; in nfs4_create_referral_server()
1314 nfs_free_server(server); in nfs4_create_referral_server()
1321 * @server: represents FSID to be moved
1333 int nfs4_update_server(struct nfs_server *server, const char *hostname, in nfs4_update_server() argument
1336 struct nfs_client *clp = server->nfs_client; in nfs4_update_server()
1337 struct rpc_clnt *clnt = server->client; in nfs4_update_server()
1362 nfs_server_remove_lists(server); in nfs4_update_server()
1363 set_bit(NFS_MIG_TSM_POSSIBLE, &server->mig_status); in nfs4_update_server()
1364 error = nfs4_set_client(server, hostname, sap, salen, buf, in nfs4_update_server()
1369 clear_bit(NFS_MIG_TSM_POSSIBLE, &server->mig_status); in nfs4_update_server()
1371 nfs_server_insert_lists(server); in nfs4_update_server()
1376 if (server->nfs_client->cl_hostname == NULL) { in nfs4_update_server()
1377 server->nfs_client->cl_hostname = kstrdup(hostname, GFP_KERNEL); in nfs4_update_server()
1378 if (server->nfs_client->cl_hostname == NULL) in nfs4_update_server()
1381 nfs_server_insert_lists(server); in nfs4_update_server()
1383 return nfs_probe_server(server, NFS_FH(d_inode(server->super->s_root))); in nfs4_update_server()