Lines Matching defs:entries
122 * Store NSDB entries in the cache
195 * Look up LDAP entries in the cache
274 nsdb_entry_t **entries;
353 entries = calloc(sizeof (nsdb_entry_t *), n + 1);
354 entries[n] = calloc(sizeof (nsdb_entry_t), 1);
378 /* Skip FSN UUID entries */
412 entries[n]->host =
426 entries[n]->path =
436 entries[n]->share =
445 if (entries[n]->annotations == NULL)
446 entries[n]->annotations =
452 s = entries[n]->annotations;
460 entries[n]->annotations = s;
468 entries[n]->fsluuid =
479 if (fstype == NSDB_SMB && entries[n]->share == NULL ||
480 fstype == NSDB_NFS && entries[n]->path == NULL) {
481 free(entries[n]->host);
482 entries[n]->host = NULL;
483 free(entries[n]->fsluuid);
484 entries[n]->fsluuid = NULL;
485 free(entries[n]->annotations);
486 entries[n]->annotations = NULL;
491 entries = realloc(entries,
493 entries[n] = calloc(sizeof (nsdb_entry_t), 1);
494 entries[n]->host = NULL;
495 entries[n]->path = NULL;
496 entries[n]->fsluuid = NULL;
497 entries[n]->share = NULL;
498 entries[n]->annotations = NULL;
503 free(entries[n]);
519 entries[i]->host, entries[i]->path);
523 *locations = entries;
524 cache_nsdb(host, port, uuid, n, entries);
532 nsdb_free(int n, nsdb_entry_t **entries)
536 if (entries == NULL)
539 free(entries[i]->host);
540 free(entries[i]->path);
541 free(entries[i]->fsluuid);
542 free(entries[i]->share);
543 free(entries[i]->annotations);
544 free(entries[i]);
546 free(entries);