Lines Matching refs:cnode

81 static int hfs_zero_hidden_fields (struct cnode *cp, u_int8_t *finderinfo); 
115 struct cnode *cp;
158 struct cnode *cp;
200 struct cnode *scp;
218 /* Take truncate lock before taking cnode lock. */
234 /* Zero out the date added field for the specified cnode */
235 static int hfs_zero_hidden_fields (struct cnode *cp, u_int8_t *finderinfo)
278 struct cnode *cp;
287 int decmpfs_hide = hfs_hides_xattr(ap->a_context, VTOC(vp), ap->a_name, 1); /* 1 == don't take the cnode lock */
428 * where we need to get EAs in contexts where we are already holding the cnode lock,
429 * and to re-enter hfs_vnop_getxattr would cause us to double-lock the cnode. Instead,
432 * We pass the hfsmp argument directly here because we may not necessarily have a cnode to
434 * are operating on the root directory (id 1), then we may not have a cnode. In this case, if hte
437 * NOTE: This function assumes the cnode lock for 'cp' is held exclusive or shared.
439 int hfs_getxattr_internal (struct cnode *cp, struct vnop_getxattr_args *ap,
695 struct cnode *cp = NULL;
712 if (hfs_hides_xattr(ap->a_context, VTOC(vp), ap->a_name, 1) ) { /* 1 == don't take the cnode lock */
765 /* Grab the current date added from the cnode */
817 /* Set the cnode's Finder Info. */
889 /* VNOP_WRITE marks cnode as needing a modtime update */
901 /* cnode is not open-unlinked, so re-lock cnode to sync */
981 * The gist is that we could end up writing to the root folder which may not have a cnode.
984 * 1. cnode 'cp' is locked EXCLUSIVE before calling this function.
990 int hfs_setxattr_internal (struct cnode *cp, caddr_t data_ptr, size_t attrsize,
1017 * the root folder (id 1), and do not have a cnode-in-hand,
1309 struct cnode *cp = VTOC(vp);
1697 struct cnode *cp = VTOC(vp);
1715 int compressed = hfs_file_is_compressed(cp, 1); /* 1 == don't take the cnode lock */
1728 /* Now the regular cnode lock (shared) */
1735 * Make a copy of the cnode's finderinfo to a local so we can
1771 !hfs_hides_rsrc(ap->a_context, VTOC(vp), 1) /* 1 == don't take the cnode lock */
1906 if (!state->showcompressed && hfs_hides_xattr(state->ctx, VTOC(state->vp), attrname, 1) ) /* 1 == don't take the cnode lock */
1927 * Remove all the attributes from a cnode.
2280 * - the attrdata cnode is not locked