/macosx-10.10/xnu-2782.1.97/bsd/vfs/ |
H A D | kpi_vfs.c | 3658 *#% link tdvp L U U 3670 VNOP_LINK(vnode_t vp, vnode_t tdvp, struct componentname * cnp, vfs_context_t ctx) argument 3680 if ( !NATIVE_XATTR(tdvp) && (vp->v_type == VREG)) { 3698 a.a_tdvp = tdvp; 3702 _err = (*tdvp->v_op[vnop_link_desc.vdesc_offset])(&a); 3706 post_event_if_success(tdvp, _err, NOTE_WRITE); 3713 struct vnode *tdvp, struct vnode **tvpp, struct componentname *tcnp, struct vnode_attr *tvap, 3822 _err = VNOP_COMPOUND_RENAME(fdvp, fvpp, fcnp, fvap, tdvp, tvpp, tcnp, tvap, flags, ctx); 3827 _err = VNOP_RENAME(fdvp, *fvpp, fcnp, tdvp, *tvpp, tcnp, ctx); 3831 mac_vnode_notify_rename(ctx, *fvpp, tdvp, tcn 3712 vn_rename(struct vnode *fdvp, struct vnode **fvpp, struct componentname *fcnp, struct vnode_attr *fvap, struct vnode *tdvp, struct vnode **tvpp, struct componentname *tcnp, struct vnode_attr *tvap, uint32_t flags, vfs_context_t ctx) argument 3994 VNOP_RENAME(struct vnode *fdvp, struct vnode *fvp, struct componentname *fcnp, struct vnode *tdvp, struct vnode *tvp, struct componentname *tcnp, vfs_context_t ctx) argument 4051 VNOP_COMPOUND_RENAME( struct vnode *fdvp, struct vnode **fvpp, struct componentname *fcnp, struct vnode_attr *fvap, struct vnode *tdvp, struct vnode **tvpp, struct componentname *tcnp, struct vnode_attr *tvap, uint32_t flags, vfs_context_t ctx) argument 5111 VNOP_COPYFILE(struct vnode *fvp, struct vnode *tdvp, struct vnode *tvp, struct componentname *tcnp, int mode, int flags, vfs_context_t ctx) argument [all...] |
H A D | vfs_syscalls.c | 6497 vnode_t tvp, fvp, tdvp, sdvp; local 6520 tdvp = tond.ni_dvp; 6534 if ((error = vnode_authorize(tdvp, NULL, KAUTH_VNODE_ADD_FILE, ctx)) != 0) 6537 if (fvp == tdvp) 6547 error = VNOP_COPYFILE(fvp, tdvp, tvp, &tond.ni_cnd, uap->mode, uap->flags, ctx); 6551 * nameidone has to happen before we vnode_put(tdvp) 6552 * since it may need to release the fs_nodelock on the tdvp 6558 vnode_put(tdvp); 6582 vnode_t tvp, tdvp; local 6615 fdvp = tdvp [all...] |
H A D | vfs_subr.c | 5751 struct vnode *tdvp, struct vnode *tvp, struct componentname *tcnp, 5775 if (tvp == NULLVP && vnode_compound_rename_available(tdvp)) { 5783 error = mac_vnode_check_rename(ctx, fdvp, fvp, fcnp, tdvp, tvp, tcnp); 5800 if (fvp == tdvp) { 5815 * o tdvp 5820 if (tdvp->v_parent == fvp) { 5832 } else if (tdvp != fdvp) { 5839 * the simple case of fdvp == tdvp. 5852 /* moving into tdvp or tvp, must have rights to add */ 5853 if ((error = vnode_authorize(((tvp != NULL) && vnode_isdir(tvp)) ? tvp : tdvp, 5750 vn_authorize_rename(struct vnode *fdvp, struct vnode *fvp, struct componentname *fcnp, struct vnode *tdvp, struct vnode *tvp, struct componentname *tcnp, vfs_context_t ctx, void *reserved) argument [all...] |
/macosx-10.10/xnu-2782.1.97/bsd/hfs/ |
H A D | hfs_link.c | 421 struct vnode *tdvp = ap->a_tdvp; local 493 if ((error = hfs_lockfour(VTOC(tdvp), VTOC(vp), VTOC(fdvp), NULL, HFS_EXCLUSIVE_LOCK, NULL))) { 501 if ((error = hfs_lockpair(VTOC(tdvp), VTOC(vp), HFS_EXCLUSIVE_LOCK))) { 505 tdcp = VTOC(tdvp); 618 cache_purge_negatives(tdvp); 641 error = hfs_update(tdvp, 0); 644 printf("hfs_vnop_link: error %d updating tdvp %p\n", error, tdvp);
|
H A D | hfs_vnops.c | 4327 struct vnode *tdvp = ap->a_tdvp; local 4368 hfsmp = VTOHFS(tdvp); 4400 if ((fdvp == tdvp) && ((hfsmp->hfs_flags & HFS_CASE_SENSITIVE) == 0)) { 4434 error = hfs_lockfour(VTOC(fdvp), VTOC(fvp), VTOC(tdvp), tvp ? VTOC(tvp) : NULL, 4475 tdcp = VTOC(tdvp); 4485 hfs_unlockfour(VTOC(fdvp), VTOC(fvp), VTOC(tdvp), tvp ? VTOC(tvp) : NULL); 4520 hfs_unlockfour(VTOC(fdvp), VTOC(fvp), VTOC(tdvp), tvp ? VTOC(tvp) : NULL); 4601 if (tcp && ((tcp->c_flag & (C_NOEXISTS | C_DELETED)) || !hfs_valid_cnode(hfsmp, tdvp, tcnp, tcp->c_fileid, NULL, &error))) { 4623 if (fdvp != tdvp) { 4633 if (vnode_isdir(fvp) && (fdvp != tdvp)) { [all...] |
/macosx-10.10/smb-759.0/kernel/smbfs/ |
H A D | smbfs_vnops.c | 4378 vnode_t tdvp = ap->a_tdvp; local 4394 if ((vnode_mount(fvp) != vnode_mount(tdvp)) || 4411 if (fdvp != tdvp) { 4413 lck_rw_lock_shared(&VTOSMB(tdvp)->n_parent_rwlock); 4416 if (fdvp == tdvp) 4418 else if (VTOSMB(fdvp)->n_parent && (VTOSMB(fdvp)->n_parent == VTOSMB(tdvp))) { 4419 lock_order[lock_cnt++] = VTOSMB(tdvp); 4421 } else if (VTOSMB(tdvp)->n_parent && (VTOSMB(tdvp)->n_parent == VTOSMB(fdvp))) { 4423 lock_order[lock_cnt++] = VTOSMB(tdvp); 6520 vnode_t tdvp = ap->a_tdvp; local [all...] |
/macosx-10.10/xnu-2782.1.97/security/ |
H A D | mac_vfs.c | 1050 struct vnode *vp, struct componentname *cnp, struct vnode *tdvp, 1067 MAC_CHECK(vnode_check_rename_to, cred, tdvp, tdvp->v_label, tvp, 1068 tvp != NULL ? tvp->v_label : NULL, dvp == tdvp, tcnp); 1073 vp->v_label, cnp, tdvp, tdvp->v_label, tvp, 1049 mac_vnode_check_rename(vfs_context_t ctx, struct vnode *dvp, struct vnode *vp, struct componentname *cnp, struct vnode *tdvp, struct vnode *tvp, struct componentname *tcnp) argument
|
H A D | mac_framework.h | 502 struct vnode *vp, struct componentname *cnp, struct vnode *tdvp,
|
H A D | mac_policy.h | 4857 @param tdvp Destination directory vnode 4858 @param tdlabel Policy label associated with tdvp 4876 struct vnode *tdvp,
|
/macosx-10.10/xnu-2782.1.97/bsd/sys/ |
H A D | vnode_internal.h | 432 struct vnode *tdvp, struct vnode **tvpp, struct componentname *tcnp, struct vnode_attr *tvap, 451 struct vnode *tdvp, struct vnode *tvp, struct componentname *tcnp,
|
H A D | vnode_if.h | 711 @param tdvp Directory file is being moved to. 741 vnode_t tdvp, /* As passed to VNOP */ 754 struct vnode *tdvp, struct vnode **tvpp, struct componentname *tcnp, struct vnode_attr *tvap,
|
/macosx-10.10/webdavfs-367/webdav_fs.kextproj/webdav_fs.kmodproj/ |
H A D | webdav_vnops.c | 3065 vnode_t tdvp = ap->a_tdvp; local 3085 if ((vnode_mount(fvp) != vnode_mount(tdvp)) || 3095 tdpt = VTOWEBDAV(tdvp); 3108 if (fdvp == tdvp) 3110 else if (fdpt->pt_parent && (fdpt->pt_parent == tdvp)) { 3161 request_rename.to_dir_id = VTOWEBDAV(tdvp)->pt_obj_id; 3180 webdav_purge_stale_vnode(tdvp); 3212 VTOWEBDAV(tdvp)->pt_status |= WEBDAV_DIR_NOT_LOADED; 3219 if (VTOWEBDAV(tdvp)->pt_status & WEBDAV_NEGNCENTRIES) 3221 VTOWEBDAV(tdvp) [all...] |
/macosx-10.10/xnu-2782.1.97/bsd/nfs/ |
H A D | nfs_serv.c | 2523 vnode_t fvp, tvp, tdvp, fdvp, fdirp, tdirp; local 2557 fdvp = tdvp = NULL; 2646 tdvp = toni.ni_dvp; 2695 if (fvp == tdvp) { 2706 * If tvp is a directory and not the same as fdvp, or tdvp is not the same as fdvp, 2722 } else if (tdvp != fdvp) { 2729 /* moving into tdvp or tvp, must have rights to add */ 2730 if ((error = nfsrv_authorize(((tvp != NULL) && vnode_isdir(tvp)) ? tvp : tdvp, 2744 ((error = nfsrv_authorize(tvp, tdvp, KAUTH_VNODE_DELETE, ctx, tnxo, 0)) != 0)) 2755 if ((vnode_mount(fvp) != vnode_mount(tdvp)) || [all...] |
H A D | nfs_vnops.c | 4213 vnode_t tdvp = ap->a_tdvp; local 4225 tdnp = VTONFS(tdvp); 4252 tdmp = vnode_mount(tdvp); 4327 cache_purge_negatives(tdvp); 4331 cache_enter(tdvp, fvp, tcnp); 4332 if (tdvp != fdvp) { /* update parent pointer */ 4338 fnp->n_parent = tdvp; 4339 if (tdvp && !vnode_get(tdvp)) { 4341 vnode_ref(tdvp); 4455 vnode_t tdvp = ap->a_tdvp; local [all...] |
H A D | nfs4_vnops.c | 6569 vnode_t tdvp = ap->a_tdvp; local 6574 nfsnode_t tdnp = VTONFS(tdvp); 6580 if (vnode_mount(vp) != vnode_mount(tdvp)) 6668 cache_purge_negatives(tdvp);
|
/macosx-10.10/xnu-2782.1.97/bsd/miscfs/devfs/ |
H A D | devfs_vnops.c | 860 struct vnode *tdvp = ap->a_tdvp; local 881 /* can lookup dnode safely for tdvp outside of devfs lock as it is not aliased */ 882 tdp = VTODN(tdvp); 884 if (tdvp->v_mount != vp->v_mount) { 945 struct vnode *tdvp = ap->a_tdvp; local 969 tdp = VTODN(tdvp);
|
/macosx-10.10/msdosfs-209.1.1/msdosfs.kextproj/msdosfs.kmodproj/ |
H A D | msdosfs_vnops.c | 1341 vnode_t tdvp = ap->a_tdvp; local 1368 tddep = VTODE(tdvp); 1432 cache_purge(tdvp); 1641 cache_purge_negatives(tdvp);
|