Lines Matching full:server
27 static void nfs_init_server_aclclient(struct nfs_server *server) in nfs_init_server_aclclient() argument
29 if (server->flags & NFS_MOUNT_NOACL) in nfs_init_server_aclclient()
32 server->client_acl = rpc_bind_new_program(server->client, &nfsacl_program, 3); in nfs_init_server_aclclient()
33 if (IS_ERR(server->client_acl)) in nfs_init_server_aclclient()
36 nfs_sysfs_link_rpc_client(server, server->client_acl, NULL); in nfs_init_server_aclclient()
39 server->caps |= NFS_CAP_ACLS; in nfs_init_server_aclclient()
43 server->caps &= ~NFS_CAP_ACLS; in nfs_init_server_aclclient()
46 static inline void nfs_init_server_aclclient(struct nfs_server *server) in nfs_init_server_aclclient() argument
48 server->flags &= ~NFS_MOUNT_NOACL; in nfs_init_server_aclclient()
49 server->caps &= ~NFS_CAP_ACLS; in nfs_init_server_aclclient()
55 struct nfs_server *server = nfs_create_server(fc); in nfs3_create_server() local
58 if (!IS_ERR(server)) in nfs3_create_server()
59 nfs_init_server_aclclient(server); in nfs3_create_server()
60 return server; in nfs3_create_server()
68 struct nfs_server *server = nfs_clone_server(source, fh, fattr, flavor); in nfs3_clone_server() local
69 if (!IS_ERR(server) && !IS_ERR(source->client_acl)) in nfs3_clone_server()
70 nfs_init_server_aclclient(server); in nfs3_clone_server()
71 return server; in nfs3_clone_server()
75 * Set up a pNFS Data Server client over NFSv3.
77 * Return any existing nfs_client that matches server address,port,version