Lines Matching refs:cnode

83 static int hfs_zero_dateadded (struct cnode *cp, u_int8_t *finderinfo); 
117 struct cnode *cp;
160 struct cnode *cp;
202 struct cnode *scp;
220 /* Take truncate lock before taking cnode lock. */
236 /* Zero out the date added field for the specified cnode */
237 static int hfs_zero_dateadded (struct cnode *cp, u_int8_t *finderinfo) {
277 struct cnode *cp;
286 int decmpfs_hide = hfs_hides_xattr(ap->a_context, VTOC(vp), ap->a_name, 1); /* 1 == don't take the cnode lock */
427 * where we need to get EAs in contexts where we are already holding the cnode lock,
428 * and to re-enter hfs_vnop_getxattr would cause us to double-lock the cnode. Instead,
431 * We pass the hfsmp argument directly here because we may not necessarily have a cnode to
433 * are operating on the root directory (id 1), then we may not have a cnode. In this case, if hte
436 * NOTE: This function assumes the cnode lock for 'cp' is held exclusive or shared.
440 int hfs_getxattr_internal (struct cnode *cp, struct vnop_getxattr_args *ap,
661 struct cnode *cp = NULL;
678 if (hfs_hides_xattr(ap->a_context, VTOC(vp), ap->a_name, 1) ) { /* 1 == don't take the cnode lock */
729 /* Grab the current date added from the cnode */
769 /* Set the cnode's Finder Info. */
839 /* VNOP_WRITE marks cnode as needing a modtime update */
852 /* cnode is not open-unlinked, so re-lock cnode to sync */
930 * The gist is that we could end up writing to the root folder which may not have a cnode.
933 * 1. cnode 'cp' is locked EXCLUSIVE before calling this function.
939 int hfs_setxattr_internal (struct cnode *cp, caddr_t data_ptr, size_t attrsize,
966 * the root folder (id 1), and do not have a cnode-in-hand,
1260 struct cnode *cp = VTOC(vp);
1643 struct cnode *cp = VTOC(vp);
1661 int compressed = hfs_file_is_compressed(cp, 1); /* 1 == don't take the cnode lock */
1672 * Make a copy of the cnode's finderinfo to a local so we can
1708 !hfs_hides_rsrc(ap->a_context, VTOC(vp), 1) /* 1 == don't take the cnode lock */
1842 if (!state->showcompressed && hfs_hides_xattr(state->ctx, VTOC(state->vp), attrname, 1) ) /* 1 == don't take the cnode lock */
1863 * Remove all the attributes from a cnode.
2215 * - the attrdata cnode is not locked