Lines Matching defs:fcp

4340 	struct cnode *fcp;
4474 fcp = VTOC(fvp);
4482 if ((fcp->c_bsdflags & UF_TRACKED) && ((struct FndrExtendedDirInfo *)((char *)&fcp->c_attr.ca_finderinfo + 16))->document_id == 0) {
4489 hfs_lock(fcp, HFS_EXCLUSIVE_LOCK, HFS_LOCK_DEFAULT);
4490 ((struct FndrExtendedDirInfo *)((char *)&fcp->c_attr.ca_finderinfo + 16))->document_id = newid;
4495 FSE_ARG_INO, (ino64_t)fcp->c_fileid, // dst inode #
4499 hfs_unlock(fcp);
4567 hfs_unlockfour(fdcp, fcp, tdcp, tcp);
4596 if ((fcp->c_flag & (C_NOEXISTS | C_DELETED)) || !hfs_valid_cnode(hfsmp, fdvp, fcnp, fcp->c_fileid, NULL, &error)) {
4613 hfs_unlockfour(fdcp, fcp, tdcp, tcp);
4634 if (fcp->c_flag & C_HARDLINK) {
4638 if (fcp->c_attr.ca_recflags & kHFSHasChildLinkMask) {
4664 if (tdcp->c_parentcnid == fcp->c_fileid) {
4706 if ((fcp->c_bsdflags & (IMMUTABLE | APPEND)) || (fdcp->c_bsdflags & APPEND)) {
4729 if (hfs_is_journal_file(hfsmp, fcp) ||
4767 if (fcp->c_linkcount != 1) {
4772 if (fcp->c_rsrc_vp && (fcp->c_rsrc_vp->v_usecount > 0 ||
4773 fcp->c_rsrc_vp->v_iocount > 0)) {
4778 if (fcp->c_vp && (fcp->c_vp->v_usecount > (fcp->c_rsrc_vp ? 1 : 0) ||
4779 fcp->c_vp->v_iocount > 1)) {
4794 from_desc.cd_flags = fcp->c_desc.cd_flags & ~(CD_HASBUF | CD_DECOMPOSED);
4795 from_desc.cd_cnid = fcp->c_cnid;
4801 to_desc.cd_flags = fcp->c_desc.cd_flags & ~(CD_HASBUF | CD_DECOMPOSED);
4802 to_desc.cd_cnid = fcp->c_cnid;
4817 if (fcp->c_attr.ca_recflags & kHFSHasChildLinkMask) {
4832 if (fcp->c_flag & C_HARDLINK) {
4840 tmpdesc.cd_flags = fcp->c_desc.cd_flags & CD_ISDIR;
4898 struct FndrExtendedDirInfo *ffip = (struct FndrExtendedDirInfo *)((char *)&fcp->c_attr.ca_finderinfo + 16);
4918 // printf("RENAME: preserving doc-id %d onto %s (from ino %d, to ino %d)\n", document_id, tcp->c_desc.cd_nameptr, tcp->c_desc.cd_cnid, fcp->c_desc.cd_cnid);
4919 fcp->c_bsdflags |= UF_TRACKED;
4922 (void) cat_update(hfsmp, &fcp->c_desc, &fcp->c_attr, NULL, NULL);
4927 FSE_ARG_INO, (ino64_t)fcp->c_fileid, // dst inode #
4931 } else if ((fcp->c_bsdflags & UF_TRACKED) && should_save_docid_tombstone(ut, fvp, fcnp)) {
4939 // ut->t_lastop_document_id, ut->t_lastop_filename, fcp->c_desc.cd_cnid);
4949 if (!(fcp->c_flag & C_HARDLINK)) {
5059 if (fcp->c_bsdflags & UF_TRACKED) {
5064 // ut->t_lastop_document_id, ut->t_lastop_filename, fcp->c_desc.cd_cnid);
5073 //printf("RENAME: %s (ino %d) inheriting doc-id %lld\n", tcnp->cn_nameptr, fcp->c_desc.cd_cnid, ut->t_lastop_document_id);
5074 struct FndrExtendedFileInfo *fip = (struct FndrExtendedFileInfo *)((char *)&fcp->c_attr.ca_finderinfo + 16);
5075 fcp->c_bsdflags |= UF_TRACKED;
5077 cat_update(hfsmp, &fcp->c_desc, &fcp->c_attr, NULL, NULL);
5079 clear_tombstone_docid(ut, hfsmp, fcp); // will send the docid-changed fsevent
5121 replace_desc(fcp, &out_desc);
5122 fcp->c_parentcnid = tdcp->c_fileid;
5123 fcp->c_hint = 0;
5126 fcp->c_flag |= C_NEEDS_DATEADDED;
5142 if ((fcp->c_attr.ca_recflags & kHFSHasChildLinkMask) &&
5189 * cnode -- it's still 'fcp'.
5191 if (fcp->c_rsrc_vp) {
5207 vnode_update_identity (fcp->c_rsrc_vp, fvp, rsrc_path, len, 0, (VNODE_UPDATE_NAME | VNODE_UPDATE_CACHE));
5231 hfs_unlockfour(fdcp, fcp, tdcp, tcp);