Searched refs:fdvp (Results 1 - 14 of 14) sorted by relevance

/macosx-10.10/xnu-2782.1.97/bsd/hfs/
H A Dhfs_link.c422 struct vnode *fdvp = NULLVP; local
468 if ((error = hfs_vget(hfsmp, hfs_currentparent(VTOC(vp)), &fdvp, 1, 0))) {
482 if (fdvp) {
483 vnode_put(fdvp);
492 if (fdvp) {
493 if ((error = hfs_lockfour(VTOC(tdvp), VTOC(vp), VTOC(fdvp), NULL, HFS_EXCLUSIVE_LOCK, NULL))) {
494 if (fdvp) {
495 vnode_put(fdvp);
499 fdcp = VTOC(fdvp);
657 error = hfs_update(fdvp,
[all...]
H A Dhfs_vnops.c4329 struct vnode *fdvp = ap->a_fdvp; local
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,
4473 fdcp = VTOC(fdvp);
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);
4596 if ((fcp->c_flag & (C_NOEXISTS | C_DELETED)) || !hfs_valid_cnode(hfsmp, fdvp, fcnp, fcp->c_fileid, NULL, &error)) {
4623 if (fdvp != tdvp) {
4633 if (vnode_isdir(fvp) && (fdvp != tdvp)) {
4653 * o fdvp
[all...]
/macosx-10.10/xnu-2782.1.97/bsd/vfs/
H A Dkpi_vfs.c3712 vn_rename(struct vnode *fdvp, struct vnode **fvpp, struct componentname *fcnp, struct vnode_attr *fvap, argument
3730 batched = vnode_compound_rename_available(fdvp);
3753 if (!NATIVE_XATTR(fdvp) &&
3790 fromnd->ni_dvp = fdvp;
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);
3857 if (_err == 0 && !NATIVE_XATTR(fdvp) && xfromname != NULL) {
3884 error = VNOP_COMPOUND_RENAME(fdvp, &src_attr_vp, &fromnd->ni_cnd, NULL,
3888 error = VNOP_RENAME(fdvp, src_attr_vp, &fromnd->ni_cnd,
3896 if (fdvp !
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
[all...]
H A Dvfs_syscalls.c6583 vnode_t fvp, fdvp; local
6615 fdvp = tdvp = NULL;
6631 fdvp = fromnd->ni_dvp;
6651 batched = vnode_compound_rename_available(fdvp);
6656 * Suppose fdvp and tdvp are not on the same mount.
6657 * If fvp is on the same mount as tdvp, then fvp is not on the same mount as fdvp, so fvp is the root of its filesystem. If fvp is the root,
6659 * If fvp sits atop a vnode on the same mount as fdvp, then that vnode must be part of the same mount as fdvp, which is a contradiction.
6663 if (fdvp->v_mount != tdvp->v_mount) {
6671 error = vn_authorize_rename(fdvp, fv
[all...]
H A Dvfs_subr.c5750 vn_authorize_rename(struct vnode *fdvp, struct vnode *fvp, struct componentname *fcnp, argument
5768 ((fdvp == fvp) ||
5783 error = mac_vnode_check_rename(ctx, fdvp, fvp, fcnp, tdvp, tvp, tcnp);
5809 * o fdvp
5830 if (tvp != fdvp)
5832 } else if (tdvp != fdvp) {
5839 * the simple case of fdvp == tdvp.
5845 if ((error = vnode_authorize(fvp, fdvp, KAUTH_VNODE_DELETE | KAUTH_VNODE_ADD_SUBDIRECTORY, ctx)) != 0)
5848 if ((error = vnode_authorize(fvp, fdvp, KAUTH_VNODE_DELETE, ctx)) != 0)
5861 if ((error = vnode_authorize(fdvp, NUL
[all...]
/macosx-10.10/xnu-2782.1.97/bsd/sys/
H A Dvnode_internal.h431 errno_t vn_rename(struct vnode *fdvp, struct vnode **fvpp, struct componentname *fcnp, struct vnode_attr *fvap,
450 int vn_authorize_rename(struct vnode *fdvp, struct vnode *fvp, struct componentname *fcnp,
H A Dvnode_if.h708 @param fdvp Directory in which source file resides.
738 vnode_t fdvp, /* As passed to VNOP */
753 struct vnode *fdvp, struct vnode **fvpp, struct componentname *fcnp, struct vnode_attr *fvap,
/macosx-10.10/smb-759.0/kernel/smbfs/
H A Dsmbfs_vnops.c4377 vnode_t fdvp = ap->a_fdvp; local
4411 if (fdvp != tdvp) {
4412 lck_rw_lock_shared(&VTOSMB(fdvp)->n_parent_rwlock);
4416 if (fdvp == tdvp)
4417 lock_order[lock_cnt++] = VTOSMB(fdvp);
4418 else if (VTOSMB(fdvp)->n_parent && (VTOSMB(fdvp)->n_parent == VTOSMB(tdvp))) {
4420 lock_order[lock_cnt++] = VTOSMB(fdvp);
4421 } else if (VTOSMB(tdvp)->n_parent && (VTOSMB(tdvp)->n_parent == VTOSMB(fdvp))) {
4422 lock_order[lock_cnt++] = VTOSMB(fdvp);
[all...]
H A Dsmbfs_node.c2313 vnode_t fdvp = NULL; local
2334 * fdvp = np->n_parent->n_vnode (not locked)
2346 fdvp = fdnp->n_vnode;
2354 (fdvp != NULL) &&
2367 * exclusive lock, so reset fdnp and fdvp
2370 fdvp = NULL;
2375 fdvp = fdnp->n_vnode;
2379 /* Make sure fdnp and fdvp are still ok */
2380 if ((fdnp == NULL) || (fdvp == NULL)) {
2416 if ((!vnode_isvroot(fdvp))
[all...]
/macosx-10.10/xnu-2782.1.97/bsd/nfs/
H A Dnfs_serv.c2523 vnode_t fvp, tvp, tdvp, fdvp, fdirp, tdirp; local
2557 fdvp = tdvp = NULL;
2597 fdvp = fromni.ni_dvp;
2706 * If tvp is a directory and not the same as fdvp, or tdvp is not the same as fdvp,
2720 if (tvp != fdvp)
2722 } else if (tdvp != fdvp) {
2726 /* moving out of fdvp, must have delete rights */
2727 if ((error = nfsrv_authorize(fvp, fdvp, KAUTH_VNODE_DELETE, ctx, fnxo, 0)) != 0)
2737 if ((error = nfsrv_authorize(fdvp, NUL
[all...]
H A Dnfs_vnops.c4211 vnode_t fdvp = ap->a_fdvp; local
4223 fdnp = VTONFS(fdvp);
4332 if (tdvp != fdvp) { /* update parent pointer */
/macosx-10.10/webdavfs-367/webdav_fs.kextproj/webdav_fs.kmodproj/
H A Dwebdav_vnops.c3066 vnode_t fdvp = ap->a_fdvp; local
3093 fdpt = VTOWEBDAV(fdvp);
3108 if (fdvp == tdvp)
3113 } else if (tdpt->pt_parent && (tdpt->pt_parent == fdvp)) {
3132 if ((tvp == NULL) || (tvp == fvp) || (tvp == fdvp))
3159 request_rename.from_dir_id = VTOWEBDAV(fdvp)->pt_obj_id;
3178 webdav_purge_stale_vnode(fdvp);
3211 VTOWEBDAV(fdvp)->pt_status |= WEBDAV_DIR_NOT_LOADED;
/macosx-10.10/xnu-2782.1.97/bsd/miscfs/devfs/
H A Ddevfs_vnops.c947 struct vnode *fdvp = ap->a_fdvp; local
970 fdp = VTODN(fdvp);
/macosx-10.10/msdosfs-209.1.1/msdosfs.kextproj/msdosfs.kmodproj/
H A Dmsdosfs_vnops.c1343 vnode_t fdvp = ap->a_fdvp; local
1366 fddep = VTODE(fdvp);
1401 cache_purge(fdvp);

Completed in 438 milliseconds