Lines Matching refs:fork

165  * remain for cnodes marked in such a fashion is to teardown their fork references and 
214 * Check whether we are tearing down a cnode with only one remaining fork.
287 * we want to ensure that the resource fork continues to be available
288 * if the caller has the data fork open. However, this is not symmetric;
289 * someone who has the resource fork open need not be able to access the data
290 * fork once the data fork has gone inactive.
292 * If we're the last fork, then we have cleaning up to do.
294 * A) last fork, and vp == c_vp
295 * Truncate away own fork data. If rsrc fork is not in core, truncate it too.
297 * B) last fork, and vp == c_rsrc_vp
298 * Truncate ourselves, assume data fork has been cleaned due to C).
300 * If we're not the last fork, then things are a little different:
302 * C) not the last fork, vp == c_vp
304 * it cannot be further opened. Further access to the rsrc fork may
307 * D) not the last fork, vp == c_rsrc_vp
326 /* Truncate away our own fork data. (Case A, B, C above) */
368 * Truncate away the resource fork, if we represent the data fork and
369 * it is the last fork. That means, by definition, the rsrc fork is not in
371 * data in the resource fork, we call cat_lookup directly, then hfs_release_storage
372 * to get rid of the resource fork's data.
426 * If there were no errors, then we have the catalog's fork information
427 * for the resource fork in question. Go ahead and delete the data in it now.
438 * This fileid's resource fork extents have now been fully deleted on-disk
453 * If we represent the last fork (or none in the case of a dir),
565 * to do that now, before we lose our fork data. We also need to
597 * Go ahead and flush the keys out if this cnode is the last fork
879 * Find file fork for this vnode (if any)
880 * Also check if another fork is active
898 * On the last fork, remove the cnode from its hash chain.
915 /* Release the file fork and related data */
925 * If there was only one active fork then we can release the cnode.
1216 * Allocate and initialize a file fork...
1230 panic("hfs_getnewvnode: orphaned rsrc fork");
1239 panic("hfs_getnewvnode: orphaned data fork");
1251 * interested in (i.e. we want the resource fork
1252 * but the cnode already has the data fork)
1357 * Tag resource fork vnodes as needing an VNOP_INACTIVE
1359 * have the chance to process the resource fork.
1421 * attempting to reclaim a cnode with only one live fork. Because the vnode
1475 struct cat_fork fork;
1488 * in memory to store the on-disk fork structures.
1498 lookup = cat_lookup (hfsmp, &cndesc, 0, NULL, &attr, &fork, NULL);