Lines Matching refs:linkkey

85 static int fill_link_key(char *linkkey, fhandle_t *dfh, char *name);
111 static linkinfo_ent *get_next_link(struct db_list *dbp, char *linkkey,
129 static int delete_link_by_key(struct db_list *dbp, char *linkkey,
198 fill_link_key(char *linkkey, fhandle_t *dfh, char *name) in fill_link_key() argument
202 (void) memcpy(linkkey, &dfh->fh_data, dfh->fh_len); in fill_link_key()
203 (void) strcpy(&linkkey[dfh->fh_len], name); in fill_link_key()
207 bzero(&linkkey[linksize], linksize32 - linksize); in fill_link_key()
758 get_next_link(struct db_list *dbp, char *linkkey, int *linksizep, in get_next_link() argument
770 new_linkp = fetch_record(dbp, linkkey, linksize, (void *)linkp, in get_next_link()
788 (void) memcpy(lnp->lnkey, linkkey, linksize); in get_next_link()
809 "invalid rec:\n ", linkkey, linksize, in get_next_link()
816 (void) memcpy(linkkey, nextkey, nextsize); in get_next_link()
845 fh_secondary_key linkkey; in add_mc_path() local
850 linksize = fill_link_key(linkkey, &fhrecp->dfh, fhrecp->name); in add_mc_path()
853 lastlinkp = get_next_link(dbp, linkkey, &linksize, &lastlink, in add_mc_path()
876 linksize = fill_link_key(linkkey, dfh, name); in add_mc_path()
877 *errorp = store_record(dbp, linkkey, linksize, in add_mc_path()
885 (void) memcpy(linkkey, LN_PREV(lastlinkp), linksize); in add_mc_path()
889 (void) memcpy(LN_PREV(lastlinkp), linkkey, linksize); in add_mc_path()
892 linksize = fill_link_key(linkkey, &lastlinkp->dfh, LN_NAME(lastlinkp)); in add_mc_path()
893 *errorp = store_record(dbp, linkkey, linksize, in add_mc_path()
908 fh_secondary_key linkkey; in create_link_struct() local
970 linksize = fill_link_key(linkkey, dfh, name); in create_link_struct()
971 *errorp = store_record(dbp, linkkey, linksize, linkp, linkp->reclen, in create_link_struct()
1404 fh_secondary_key linkkey; in db_lookup_link() local
1426 linksize = fill_link_key(linkkey, dfh, name); in db_lookup_link()
1427 linkp = fetch_record(dbp, linkkey, linksize, NULL, errorp, in db_lookup_link()
1441 *errorp = db_update_linkinfo(dbp, linkkey, linksize, linkp, in db_lookup_link()
1457 delete_link_by_key(struct db_list *dbp, char *linkkey, int *linksizep, in delete_link_by_key() argument
1468 dellinkp = fetch_record(dbp, linkkey, linksize, NULL, errorp, errstr); in delete_link_by_key()
1476 linkkey, linksize); in delete_link_by_key()
1509 *errorp = delete_record(dbp, linkkey, linksize, errstr); in delete_link_by_key()
1519 "fetch primary for ", linkkey, linksize); in delete_link_by_key()
1534 (void) memcpy(linkkey, nextkey, nextsize); in delete_link_by_key()
1562 fh_secondary_key linkkey; in delete_link() local
1564 linksize = fill_link_key(linkkey, dfh, name); in delete_link()
1565 linkerr = delete_link_by_key(dbp, linkkey, &linksize, in delete_link()
1750 fh_secondary_key linkkey; in links_timedout() local
1757 linksize = fill_link_key(linkkey, &pfe->dfh, pfe->name); in links_timedout()
1760 linkp = get_next_link(pdb, linkkey, &linksize, &link_st, in links_timedout()
1814 fh_secondary_key linkkey; in prune_dbs() local
1892 &pfe->dfh, pfe->name, linkkey, in prune_dbs()
1897 linkkey, &linksize, in prune_dbs()