Home
last modified time | relevance | path

Searched refs:hostname (Results 1 – 16 of 16) sorted by relevance

/fs/cifs/
Ddns_resolve.c49 const char *hostname, *sep; in dns_resolve_server_name_to_ip() local
64 hostname = unc + 2; in dns_resolve_server_name_to_ip()
67 sep = memchr(hostname, '/', len); in dns_resolve_server_name_to_ip()
69 len = sep - hostname; in dns_resolve_server_name_to_ip()
75 rc = cifs_convert_address((struct sockaddr *)&ss, hostname, len); in dns_resolve_server_name_to_ip()
80 rc = dns_query(NULL, hostname, len, NULL, ip_addr, NULL); in dns_resolve_server_name_to_ip()
83 __func__, len, len, hostname); in dns_resolve_server_name_to_ip()
86 __func__, len, len, hostname, *ip_addr); in dns_resolve_server_name_to_ip()
93 memcpy(name, hostname, len); in dns_resolve_server_name_to_ip()
Dcifs_spnego.c107 const char *hostname = server->hostname; in cifs_get_spnego_key() local
113 HOST_KEY_LEN + strlen(hostname) + in cifs_get_spnego_key()
132 hostname); in cifs_get_spnego_key()
Dconnect.c441 server->hostname); in cifs_echo_request()
497 server->hostname, (2 * SMB_ECHO_INTERVAL) / HZ); in server_unresponsive()
787 kfree(server->hostname); in clean_demultiplex_info()
2169 tcp_ses->hostname = extract_hostname(volume_info->UNC); in cifs_get_tcp_session()
2170 if (IS_ERR(tcp_ses->hostname)) { in cifs_get_tcp_session()
2171 rc = PTR_ERR(tcp_ses->hostname); in cifs_get_tcp_session()
2254 if (!IS_ERR(tcp_ses->hostname)) in cifs_get_tcp_session()
2255 kfree(tcp_ses->hostname); in cifs_get_tcp_session()
Dcifsglob.h545 char *hostname; /* hostname portion of UNC string */ member
/fs/nfs/
Ddns_resolve.c62 char *hostname; member
92 kfree(new->hostname); in nfs_dns_ent_init()
93 new->hostname = kstrndup(key->hostname, key->namelen, GFP_KERNEL); in nfs_dns_ent_init()
94 if (new->hostname) { in nfs_dns_ent_init()
108 kfree(item->hostname); in nfs_dns_ent_put()
117 item->hostname = NULL; in nfs_dns_ent_alloc()
127 return hash_str(key->hostname, NFS_DNS_HASHBITS); in nfs_dns_hash()
136 qword_add(bpp, blen, key->hostname); in nfs_dns_request()
146 ret = nfs_cache_upcall(cd, key->hostname); in nfs_dns_upcall()
163 return memcmp(a->hostname, b->hostname, a->namelen) == 0; in nfs_dns_match()
[all …]
Dnfs4super.c130 int flags, void *data, const char *hostname) in nfs_do_root_mount() argument
136 len = strlen(hostname) + 5; in nfs_do_root_mount()
141 if (strchr(hostname, ':')) in nfs_do_root_mount()
142 snprintf(root_devname, len, "[%s]:/", hostname); in nfs_do_root_mount()
144 snprintf(root_devname, len, "%s:/", hostname); in nfs_do_root_mount()
251 data->nfs_server.hostname); in nfs4_try_mount()
310 flags, data, data->hostname); in nfs4_referral_mount()
Dnfs4namespace.c276 mountdata->hostname = page2; in try_location()
279 mountdata->hostname, in try_location()
446 char *hostname; in nfs4_try_replacing_one_location() local
461 hostname = kstrndup(buf->data, buf->len, GFP_KERNEL); in nfs4_try_replacing_one_location()
462 if (hostname == NULL) in nfs4_try_replacing_one_location()
465 error = nfs4_update_server(server, hostname, sap, salen, net); in nfs4_try_replacing_one_location()
466 kfree(hostname); in nfs4_try_replacing_one_location()
Dmount_clnt.c163 .servername = info->hostname, in nfs_mount()
172 (info->hostname ? info->hostname : "server"), in nfs_mount()
248 .servername = info->hostname, in nfs_umount()
271 (info->hostname ? info->hostname : "server"), info->dirpath); in nfs_umount()
Dnfs4client.c784 const char *hostname, in nfs4_set_client() argument
793 .hostname = hostname, in nfs4_set_client()
863 cl_init.hostname = buf; in nfs4_set_ds_client()
992 data->nfs_server.hostname, in nfs4_init_server()
1089 error = nfs4_set_client(server, data->hostname, in nfs4_create_referral_server()
1159 int nfs4_update_server(struct nfs_server *server, const char *hostname, in nfs4_update_server() argument
1169 .servername = hostname, in nfs4_update_server()
1179 hostname); in nfs4_update_server()
1203 error = nfs4_set_client(server, hostname, sap, salen, buf, in nfs4_update_server()
1216 server->nfs_client->cl_hostname = kstrdup(hostname, GFP_KERNEL); in nfs4_update_server()
Dinternal.h44 char *hostname; member
70 const char *hostname; member
102 char *hostname; member
111 char *hostname; member
125 char *hostname; member
178 extern int nfs4_update_server(struct nfs_server *server, const char *hostname,
Dsuper.c943 kfree(data->mount_server.hostname); in nfs_free_parsed_mount_data()
945 kfree(data->nfs_server.hostname); in nfs_free_parsed_mount_data()
1518 &mnt->mount_server.hostname)) in nfs_parse_mount_options()
1742 if (args->mount_server.hostname) in nfs_request_mount()
1743 request.hostname = args->mount_server.hostname; in nfs_request_mount()
1745 request.hostname = args->nfs_server.hostname; in nfs_request_mount()
1765 request.hostname, status); in nfs_request_mount()
1873 char **hostname, size_t maxnamlen, in nfs_parse_devname() argument
1905 *hostname = kstrndup(dev_name, len, GFP_KERNEL); in nfs_parse_devname()
1906 if (*hostname == NULL) in nfs_parse_devname()
[all …]
Dclient.c172 if (cl_init->hostname) { in nfs_alloc_client()
174 clp->cl_hostname = kstrdup(cl_init->hostname, GFP_KERNEL); in nfs_alloc_client()
470 __func__, clp, cl_init->hostname ?: ""); in nfs_found_client()
488 if (cl_init->hostname == NULL) { in nfs_get_client()
494 cl_init->hostname, rpc_ops->version); in nfs_get_client()
521 cl_init->hostname, PTR_ERR(new)); in nfs_get_client()
640 .hostname = clp->cl_hostname, in nfs_start_lockd()
747 .hostname = data->nfs_server.hostname, in nfs_init_server()
/fs/lockd/
Dhost.c58 const char *hostname; /* remote's hostname */ member
120 ni->hostname, ni->hostname_len); in nlm_alloc_host()
213 const char *hostname, in nlmclnt_lookup_host() argument
223 .hostname = hostname, in nlmclnt_lookup_host()
224 .hostname_len = strlen(hostname), in nlmclnt_lookup_host()
234 (hostname ? hostname : "<none>"), version, in nlmclnt_lookup_host()
321 const char *hostname, in nlmsvc_lookup_host() argument
336 .hostname = hostname, in nlmsvc_lookup_host()
343 (int)hostname_len, hostname, rqstp->rq_vers, in nlmsvc_lookup_host()
Dmon.c267 static struct nsm_handle *nsm_lookup_hostname(const char *hostname, in nsm_lookup_hostname() argument
274 memcmp(nsm->sm_name, hostname, len) == 0) in nsm_lookup_hostname()
329 const char *hostname, in nsm_create_handle() argument
348 memcpy(new->sm_name, hostname, hostname_len); in nsm_create_handle()
369 const size_t salen, const char *hostname, in nsm_get_handle() argument
374 if (hostname && memchr(hostname, '/', hostname_len) != NULL) { in nsm_get_handle()
378 (int)hostname_len, hostname); in nsm_get_handle()
386 if (nsm_use_hostnames && hostname != NULL) in nsm_get_handle()
387 cached = nsm_lookup_hostname(hostname, hostname_len); in nsm_get_handle()
412 new = nsm_create_handle(sap, salen, hostname, hostname_len); in nsm_get_handle()
Dclntlock.c65 nlm_init->hostname, nlm_init->noresvport, in nlmclnt_init()
/fs/
Dcompat.c746 struct compat_nfs_string hostname; member
768 compat_nfs_string(&real->hostname, &raw->hostname); in do_nfs4_super_data_conv()