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

/darwin-on-arm/xnu/bsd/hfs/
H A Dhfs_link.c407 struct vnode *fdvp = NULLVP; local
444 if ((error = hfs_vget(hfsmp, hfs_currentparent(VTOC(vp)), &fdvp, 1, 0))) {
454 if (fdvp) {
455 vnode_put(fdvp);
464 if (fdvp) {
465 if ((error = hfs_lockfour(VTOC(tdvp), VTOC(vp), VTOC(fdvp), NULL, HFS_EXCLUSIVE_LOCK, NULL))) {
466 if (fdvp) {
467 vnode_put(fdvp);
471 fdcp = VTOC(fdvp);
624 error = hfs_update(fdvp,
[all...]
H A Dhfs_vnops.c3603 struct vnode *fdvp = ap->a_fdvp; local
3672 if ((fdvp == tdvp) && ((hfsmp->hfs_flags & HFS_CASE_SENSITIVE) == 0)) {
3698 error = hfs_lockfour(VTOC(fdvp), VTOC(fvp), VTOC(tdvp), tvp ? VTOC(tvp) : NULL,
3734 fdcp = VTOC(fdvp);
3786 if ((fcp->c_flag & (C_NOEXISTS | C_DELETED)) || !hfs_valid_cnode(hfsmp, fdvp, fcnp, fcp->c_fileid, NULL, &error)) {
3813 if (fdvp != tdvp) {
3823 if (vnode_isdir(fvp) && (fdvp != tdvp)) {
3843 * o fdvp
3866 * o tvp tvp o fdvp
3869 * o fdvp
[all...]
/darwin-on-arm/xnu/bsd/vfs/
H A Dkpi_vfs.c4362 vn_rename(struct vnode *fdvp, struct vnode **fvpp, struct componentname *fcnp, struct vnode_attr *fvap, argument
4377 batched = vnode_compound_rename_available(fdvp);
4380 vnode_t fdvp_unsafe = (THREAD_SAFE_FS(fdvp) ? NULLVP : fdvp);
4396 if (!NATIVE_XATTR(fdvp) &&
4433 fromnd->ni_dvp = fdvp;
4464 _err = VNOP_COMPOUND_RENAME(fdvp, fvpp, fcnp, fvap, tdvp, tvpp, tcnp, tvap, flags, ctx);
4470 _err = VNOP_RENAME(fdvp, *fvpp, fcnp, tdvp, *tvpp, tcnp, ctx);
4480 if (_err == 0 && !NATIVE_XATTR(fdvp) && xfromname != NULL) {
4507 error = VNOP_COMPOUND_RENAME(fdvp,
4624 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
4758 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.c5950 vnode_t fvp, fdvp; local
5983 fdvp = tdvp = NULL;
5999 fdvp = fromnd->ni_dvp;
6019 batched = vnode_compound_rename_available(fdvp);
6024 * Suppose fdvp and tdvp are not on the same mount.
6025 * 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,
6027 * 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.
6031 if (fdvp->v_mount != tdvp->v_mount) {
6039 error = vn_authorize_rename(fdvp, fv
[all...]
H A Dvfs_subr.c5512 vn_authorize_rename(struct vnode *fdvp, struct vnode *fvp, struct componentname *fcnp, argument
5530 ((fdvp == fvp) ||
5545 error = mac_vnode_check_rename_from(ctx, fdvp, fvp, fcnp);
5552 tdvp, tvp, fdvp == tdvp, tcnp);
5578 * o fdvp
5599 if (tvp != fdvp)
5601 } else if (tdvp != fdvp) {
5608 * the simple case of fdvp == tdvp.
5614 if ((error = vnode_authorize(fvp, fdvp, KAUTH_VNODE_DELETE | KAUTH_VNODE_ADD_SUBDIRECTORY, ctx)) != 0)
5617 if ((error = vnode_authorize(fvp, fdvp, KAUTH_VNODE_DELET
[all...]
/darwin-on-arm/xnu/bsd/sys/
H A Dvnode_internal.h404 errno_t vn_rename(struct vnode *fdvp, struct vnode **fvpp, struct componentname *fcnp, struct vnode_attr *fvap,
423 int vn_authorize_rename(struct vnode *fdvp, struct vnode *fvp, struct componentname *fcnp,
H A Dvnode_if.h710 @param fdvp Directory in which source file resides.
740 vnode_t fdvp, /* As passed to VNOP */
755 struct vnode *fdvp, struct vnode **fvpp, struct componentname *fcnp, struct vnode_attr *fvap,
/darwin-on-arm/xnu/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.c3906 vnode_t fdvp = ap->a_fdvp; local
3918 fdnp = VTONFS(fdvp);
4027 if (tdvp != fdvp) { /* update parent pointer */
/darwin-on-arm/xnu/bsd/miscfs/devfs/
H A Ddevfs_vnops.c947 struct vnode *fdvp = ap->a_fdvp; local
970 fdp = VTODN(fdvp);

Completed in 223 milliseconds