Lines Matching refs:host
40 char *host;
63 newlocs[i]->host = strdup(locations[i]->host);
64 if (newlocs[i]->host == NULL)
93 nsdb_lookup_flush(char *host, int port, char *uuid)
101 if (strcmp(host, n->host) == 0 && port == n->port &&
114 free(n->host);
125 cache_nsdb(char *host, int port, char *uuid, int numloc, nsdb_entry_t **locs)
133 fprintf(stderr, "cache_nsdb: caching %s/%d/%s\n", host, port, uuid);
139 new->host = strdup(host);
140 if (new->host == NULL)
156 if (strcmp(host, n->host) == 0 && port == n->port &&
177 n->host, n->port, n->uuid);
181 free(n->host);
190 free(new->host);
198 nsdb_lookup_cache(char *host, int port, char *uuid, nsdb_entry_t ***locations)
216 n->host, n->port, n->uuid);
222 free(n->host);
229 if (strcmp(host, n->host) == 0 && port == n->port &&
239 n->host, n->port, n->uuid);
260 nsdb_lookup(char *host, int port, char *uuid, int fstype,
278 if (host == NULL || uuid == NULL || locations == NULL)
284 n = nsdb_lookup_cache(host, port, uuid, locations);
291 nces = list_nces(host, port, &ncelist);
300 info = fedfs_smf_lookup(host, port, 0);
335 ld = nsdb_connect(host, port, NULL, NULL);
412 entries[n]->host =
481 free(entries[n]->host);
482 entries[n]->host = NULL;
494 entries[n]->host = NULL;
519 entries[i]->host, entries[i]->path);
524 cache_nsdb(host, port, uuid, n, entries);
539 free(entries[i]->host);