Lines Matching refs:fhrecp
89 static fhlist_ent *fh_lookup(char *fhpath, fhandle_t *fh, fhlist_ent *fhrecp,
98 char *name, fhlist_ent *fhrecp, int *errorp);
547 fh_lookup(char *fhpath, fhandle_t *fh, fhlist_ent *fhrecp, int *errorp) in fh_lookup() argument
554 return (db_lookup(fhpath, fh, fhrecp, errorp)); in fh_lookup()
664 fhlist_ent *fhrecp, int *errorp) in fh_lookup_link() argument
666 fhlist_ent *in_fhrecp = fhrecp; in fh_lookup_link()
682 fhrecp = db_lookup(fhpath, fh, fhrecp, errorp); in fh_lookup_link()
683 if (fhrecp == NULL) { in fh_lookup_link()
689 if (((dfh == NULL) || !fh_compare(dfh, &fhrecp->dfh)) && in fh_lookup_link()
690 ((name == NULL) || (strcmp(name, fhrecp->name) == 0))) { in fh_lookup_link()
701 &fhrecp->dfh, fhrecp->name, "") in fh_lookup_link()
704 if (fhrecp != in_fhrecp) { in fh_lookup_link()
705 free(fhrecp); in fh_lookup_link()
706 fhrecp = NULL; in fh_lookup_link()
716 fhrecp = db_lookup_link(fhpath, dfh, name, fhrecp, errorp); in fh_lookup_link()
717 if (fhrecp == NULL) { in fh_lookup_link()
724 if ((fh != NULL) && fh_compare(fh, &fhrecp->fh)) { in fh_lookup_link()
729 &fhrecp->dfh, fhrecp->name, "") in fh_lookup_link()
731 if (fhrecp != in_fhrecp) in fh_lookup_link()
732 free(fhrecp); in fh_lookup_link()
740 return (fhrecp); in fh_lookup_link()
880 fhlist_ent fhrec, *fhrecp; in fh_print_absolute() local
904 while ((fhrecp = fh_lookup(fhpath, fh, &fhrec, &error)) != NULL && in fh_print_absolute()
905 !(fhrecp->flags & (EXPORT_POINT | PUBLIC_PATH))) { in fh_print_absolute()
909 fhrecp->name, in fh_print_absolute()
910 ((fhrecp->flags & EXPORT_POINT) ? "root" : "")); in fh_print_absolute()
912 if (memcmp(&prevfh, &fhrecp->dfh, sizeof (*fh)) == 0) { in fh_print_absolute()
917 debug_opaque_print(stdout, fhrecp, in fh_print_absolute()
918 fhrecp->reclen); in fh_print_absolute()
923 (void) strcat(parent, fhrecp->name); in fh_print_absolute()
926 (void) memcpy(&prevfh, &fhrecp->dfh, sizeof (fhrecp->dfh)); in fh_print_absolute()
930 if (fhrecp != NULL) { in fh_print_absolute()
931 rootname = fhrecp->name; in fh_print_absolute()