Lines Matching defs:cnode

1132 		 * If there's no bitmap cnode, ignore the bitmap lock.
1265 * 1. (a) Your UID matches the cnode's UID.
1451 struct cnode cnode;
1456 bzero(&cnode, sizeof(cnode));
1479 /* Build a fake cnode */
1480 cat_convertattr(hfsmp, (CatalogRecord *)&filerec, &cnode.c_attr,
1482 cnode.c_desc.cd_parentcnid = hfsmp->hfs_private_desc[FILE_HARDLINKS].cd_cnid;
1483 cnode.c_desc.cd_nameptr = (const u_int8_t *)filename;
1484 cnode.c_desc.cd_namelen = namelen;
1485 cnode.c_desc.cd_cnid = cnode.c_attr.ca_fileid;
1486 cnode.c_blocks = dfork.ff_blocks + rfork.ff_blocks;
1498 dfork.ff_cp = &cnode;
1499 cnode.c_datafork = &dfork;
1500 cnode.c_rsrcfork = NULL;
1510 cnode.c_attr.ca_fileid, false) != 0) {
1540 rfork.ff_cp = &cnode;
1541 cnode.c_datafork = NULL;
1542 cnode.c_rsrcfork = &rfork;
1543 if (TruncateFileC(vcb, (FCB*)&rfork, 0, 1, 1, cnode.c_attr.ca_fileid, false) != 0) {
1550 if (cat_delete(hfsmp, &cnode.c_desc, &cnode.c_attr) != 0) {
1551 printf("hfs_remove_orphans: error deleting cat rec for id %d!\n", cnode.c_desc.cd_cnid);
1558 mode = cnode.c_attr.ca_mode & S_IFMT;
1794 * Requires an exclusive lock on directory cnode.
1796 * Use detach if the cnode lock must be dropped while the hint is still active.
1800 hfs_getdirhint(struct cnode *dcp, int index, int detach)
1867 * Requires an exclusive lock on directory cnode.
1871 hfs_reldirhint(struct cnode *dcp, directoryhint_t * relhint)
1897 * Requires an exclusive lock on directory cnode.
1901 hfs_reldirhints(struct cnode *dcp, int stale_hints_only)
1931 * Requires an exclusive lock on directory cnode.
1935 hfs_insertdirhint(struct cnode *dcp, directoryhint_t * hint)
2813 hfs_virtualmetafile(struct cnode *cp)