Lines Matching defs:cndesc
405 struct cat_desc cndesc;
417 error = cat_lookup(args->hfsmp, &cp->c_desc, 0, &cndesc, &cnattr, NULL, NULL);
443 replace_desc(cp, &cndesc);
445 if (cndesc.cd_cnid == kHFSRootFolderID) {
450 cat_releasedesc(&cndesc);
669 struct cat_desc cndesc;
814 if ((error = cat_idlookup(hfsmp, kHFSRootFolderID, 0, &cndesc, NULL, NULL)))
816 vcb->volumeNameEncodingHint = cndesc.cd_encoding;
817 bcopy(cndesc.cd_nameptr, vcb->vcbVN, min(255, cndesc.cd_namelen));
818 cat_releasedesc(&cndesc);
2581 struct cat_desc cndesc;
2606 bzero(&cndesc, sizeof(cndesc));
2616 cndesc.cd_nameptr = (const u_int8_t *)&hfs_rootname[0];
2617 cndesc.cd_namelen = 1;
2618 cndesc.cd_parentcnid = kHFSRootParentID;
2619 cndesc.cd_cnid = kHFSRootFolderID;
2620 cndesc.cd_flags = CD_ISDIR;
2633 error = cat_idlookup(hfsmp, cnid, 0, &cndesc, &cnattr, &cnfork);
2644 pid = cndesc.cd_parentcnid;
2645 nameptr = (const char *)cndesc.cd_nameptr;
2658 cat_releasedesc(&cndesc);
2686 cat_releasedesc(&cndesc);
2687 bcopy(&linkdesc, &cndesc, sizeof(linkdesc));
2693 error = hfs_getnewvnode(hfsmp, NULL, NULL, &cndesc, 0, &cnattr, &cnfork, &vp);
2708 cn.cn_namelen = cndesc.cd_namelen;
2711 bcopy(cndesc.cd_nameptr, cn.cn_nameptr, cndesc.cd_namelen + 1);
2713 error = hfs_getnewvnode(hfsmp, NULLVP, &cn, &cndesc, 0, &cnattr, &cnfork, &vp);
2716 hfs_savelinkorigin(VTOC(vp), cndesc.cd_parentcnid);
2720 cat_releasedesc(&cndesc);