Lines Matching refs:CatalogKey

96 static int cat_lookupbykey(struct hfsmount *hfsmp, CatalogKey *keyp, int flags, u_int32_t hint, int wantrsrc,
104 static int cat_findposition(const CatalogKey *ckp, const CatalogRecord *crp,
109 static int getkey(struct hfsmount *hfsmp, cnid_t cnid, CatalogKey * key);
114 static void buildthreadkey(HFSCatalogNodeID parentID, int std_hfs, CatalogKey *key);
118 static int catrec_update(const CatalogKey *ckp, CatalogRecord *crp, struct update_state *state);
281 buildthreadkey(nextCNID, std_hfs, (CatalogKey *)&iterator->key);
444 CatalogKey *key,
526 CatalogKey * keyp;
534 MALLOC(keyp, CatalogKey *, sizeof(CatalogKey), M_TEMP, M_WAITOK);
607 buildthreadkey(file_rec.fileID, 1, (CatalogKey *)&iterator[1].key);
638 CatalogKey * keyp;
648 buildthreadkey(cnid, std_hfs, (CatalogKey *)&iterator->key);
666 keyp = (CatalogKey *)((char *)&recp->hfsThread.reserved + 6);
675 keyp = (CatalogKey *)&recp->hfsPlusThread.reserved;
719 CatalogKey * keyp;
728 buildthreadkey(cnid, std_hfs, (CatalogKey *)&iterator->key);
744 keyp = (CatalogKey *)((char *)&recp->hfsThread.reserved + 6);
758 keyp = (CatalogKey *)&recp->hfsPlusThread.reserved;
869 cat_lookupbykey(struct hfsmount *hfsmp, CatalogKey *keyp, int flags, u_int32_t hint, int wantrsrc,
890 bcopy(keyp, &iterator->key, sizeof(CatalogKey));
1198 buildthreadkey(new_fileid, std_hfs, (CatalogKey *) &bto->iterator.key);
1222 buildthreadkey(new_fileid, std_hfs, (CatalogKey *)&bto->iterator.key);
1358 buildthreadkey(pathcnid, std_hfs, (CatalogKey *)&dir_iterator->key);
1539 buildthreadkey(from_cdp->cd_cnid, std_hfs, (CatalogKey *)&from_iterator->key);
1556 buildthreadkey(from_cdp->cd_cnid, std_hfs, (CatalogKey *)&from_iterator->key);
1643 result = getkey(hfsmp, attrp->ca_fileid, (CatalogKey *)&iterator->key);
1684 buildthreadkey(cnid, std_hfs, (CatalogKey *)&iterator->key);
1737 result = getkey(hfsmp, attrp->ca_fileid, (CatalogKey *)&iterator->key);
1777 catrec_update(const CatalogKey *ckp, CatalogRecord *crp, struct update_state *state)
2143 if ((result = getkey(hfsmp, cnid, (CatalogKey *)keyp))) {
2176 update_siblinglinks_callback(__unused const CatalogKey *ckp, CatalogRecord *crp, struct linkupdate_state *state)
2219 result = getkey(hfsmp, linkfileid, (CatalogKey *)&iterator->key);
2294 if ((result = getkey(hfsmp, linkfileid, (CatalogKey *)&iterator->key))) {
2353 if ((result = getkey(hfsmp, currentlink, (CatalogKey *)&iterator->key))) {
2497 buildthreadkey(nextCNID, 0, (CatalogKey *) &bto->iterator.key);
2580 buildthreadkey(nextCNID, 0, (CatalogKey *)&bto->iterator.key);
2838 getentriesattr_callback(const CatalogKey *key, const CatalogRecord *rec,
2947 CatalogKey * key;
2971 key = (CatalogKey *)&iterator->key;
3127 getdirentries_callback(const CatalogKey *ckp, const CatalogRecord *crp,
3454 getdirentries_std_callback(const CatalogKey *ckp, const CatalogRecord *crp,
3548 CatalogKey * key;
3590 key = (CatalogKey *)&iterator->key;
3701 CatalogKey ckp;
3801 cat_findposition(const CatalogKey *ckp, const CatalogRecord *crp,
4093 getkey(struct hfsmount *hfsmp, cnid_t cnid, CatalogKey * key)
4098 CatalogKey * keyp;
4107 buildthreadkey(cnid, std_hfs, (CatalogKey *)&iterator->key);
4123 keyp = (CatalogKey *)((char *)&recp->hfsThread.reserved + 6);
4131 keyp = (CatalogKey *)&recp->hfsPlusThread.reserved;
4158 cat_getkeyplusattr(struct hfsmount *hfsmp, cnid_t cnid, CatalogKey * key, struct cat_attr *attrp)
4615 buildthreadkey(HFSCatalogNodeID parentID, int std_hfs, CatalogKey *key)
4748 CatalogKey *keyp;
4762 buildthreadkey(dirlink_id, 1, (CatalogKey *)&iterator->key);
4782 keyp = (CatalogKey *)&recp->hfsPlusThread.reserved;