Lines Matching defs:locations
44 nsdb_entry_t **locations;
53 copy_nsdblist(int numloc, nsdb_entry_t **locations)
63 newlocs[i]->host = strdup(locations[i]->host);
66 newlocs[i]->fsluuid = strdup(locations[i]->fsluuid);
69 if (locations[i]->path != NULL) {
70 newlocs[i]->path = strdup(locations[i]->path);
74 if (locations[i]->share != NULL) {
75 newlocs[i]->share = strdup(locations[i]->share);
79 if (locations[i]->annotations != NULL) {
81 strdup(locations[i]->annotations);
112 nsdb_free(n->numloc, n->locations);
148 new->locations = copy_nsdblist(numloc, locs);
149 if (new->locations == NULL)
179 nsdb_free(n->numloc, n->locations);
188 nsdb_free(numloc, new->locations);
198 nsdb_lookup_cache(char *host, int port, char *uuid, nsdb_entry_t ***locations)
220 nsdb_free(n->numloc, n->locations);
242 loclist = copy_nsdblist(n->numloc, n->locations);
248 *locations = loclist;
253 * Return the number of nsdb_entry_t *'s provided in 'locations'.
256 * Return values: the number of locations in the array (may be zero),
261 nsdb_entry_t ***locations)
278 if (host == NULL || uuid == NULL || locations == NULL)
284 n = nsdb_lookup_cache(host, port, uuid, locations);
478 /* Skip undesired locations */
523 *locations = entries;