Lines Matching defs:dirhint

2598 cat_getentriesattr(struct hfsmount *hfsmp, directoryhint_t *dirhint, struct cat_entrylist *ce_list)
2615 parentcnid = dirhint->dh_desc.cd_parentcnid;
2627 iterator->hint.nodeNum = dirhint->dh_desc.cd_hint;
2628 index = dirhint->dh_index + 1;
2633 if (dirhint->dh_desc.cd_namelen != 0) {
2634 if (buildkey(hfsmp, &dirhint->dh_desc, (HFSPlusCatalogKey *)key, 0) == 0) {
2647 buildthreadkey(dirhint->dh_desc.cd_parentcnid, (hfsmp->hfs_flags & HFS_STANDARD), key);
2664 ps.parentID = dirhint->dh_desc.cd_parentcnid;
3195 cat_getdirentries(struct hfsmount *hfsmp, u_int32_t entrycnt, directoryhint_t *dirhint,
3244 index = dirhint->dh_index + 1;
3252 if (dirhint->dh_desc.cd_namelen != 0) {
3253 if (buildkey(hfsmp, &dirhint->dh_desc, (HFSPlusCatalogKey *)key, 0) == 0) {
3254 iterator->hint.nodeNum = dirhint->dh_desc.cd_hint;
3259 if (index == 0 && dirhint->dh_threadhint != 0) {
3264 buildthreadkey(dirhint->dh_desc.cd_parentcnid, (hfsmp->hfs_flags & HFS_STANDARD), key);
3265 iterator->hint.nodeNum = dirhint->dh_threadhint;
3278 buildthreadkey(dirhint->dh_desc.cd_parentcnid, (hfsmp->hfs_flags & HFS_STANDARD), key);
3285 dirhint->dh_threadhint = iterator->hint.nodeNum;
3297 ps.parentID = dirhint->dh_desc.cd_parentcnid;
3316 state.cbs_desc = &dirhint->dh_desc;
3319 state.cbs_parentID = dirhint->dh_desc.cd_parentcnid;
3322 if (dirhint->dh_desc.cd_namelen > 0 && dirhint->dh_desc.cd_nameptr != NULL) {
3323 bcopy(dirhint->dh_desc.cd_nameptr, buffer, dirhint->dh_desc.cd_namelen+1);
3324 if (dirhint->dh_desc.cd_flags & CD_HASBUF) {
3325 dirhint->dh_desc.cd_flags &= ~CD_HASBUF;
3326 vfs_removename((const char *)dirhint->dh_desc.cd_nameptr);
3329 dirhint->dh_desc.cd_nameptr = (u_int8_t *)buffer;
3376 dirhint->dh_desc.cd_flags |= CD_EOF;
3381 dirhint->dh_desc.cd_hint = iterator->hint.nodeNum;
3382 dirhint->dh_desc.cd_flags |= CD_DECOMPOSED;
3383 dirhint->dh_index = index - 1;
3386 if (dirhint->dh_desc.cd_namelen > 0) {
3387 dirhint->dh_desc.cd_nameptr = (const u_int8_t *)vfs_addname((char *)buffer, dirhint->dh_desc.cd_namelen, 0, 0);
3388 dirhint->dh_desc.cd_flags |= CD_HASBUF;
3390 dirhint->dh_desc.cd_nameptr = NULL;
3391 dirhint->dh_desc.cd_namelen = 0;