Lines Matching defs:fvp

5865 	vnode_t tvp, fvp, tdvp, sdvp;
5880 fvp = fromnd.ni_vp;
5897 if (fvp->v_type == VDIR || (tvp && tvp->v_type == VDIR)) {
5905 if (fvp == tdvp)
5912 if (fvp == tvp)
5915 error = VNOP_COPYFILE(fvp, tdvp, tvp, &tond.ni_cnd, uap->mode, uap->flags, ctx);
5929 vnode_put(fvp);
5950 vnode_t fvp, fdvp;
5982 fvp = tvp = NULL;
6000 fvp = fromnd->ni_vp;
6002 if (fvp && fvp->v_type == VDIR)
6011 if (error == EISDIR && fvp->v_type == VDIR)
6020 if (!fvp) {
6023 * For success, either fvp must be on the same mount as tdvp, or fvp must sit atop a vnode on the same mount as tdvp.
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.
6039 error = vn_authorize_rename(fdvp, fvp, &fromnd->ni_cnd, tdvp, tvp, &tond->ni_cnd, ctx, NULL);
6060 if (fvp == tvp) {
6067 if (VNOP_PATHCONF(fvp, _PC_CASE_SENSITIVE, &pathconf_val, ctx) != 0 ||
6083 if ((fvp->v_flag & VROOT) &&
6084 (fvp->v_type == VDIR) &&
6086 (fvp->v_mountedhere == NULL) &&
6088 ((fvp->v_mount->mnt_flag & (MNT_UNION | MNT_ROOTFS)) == 0) &&
6089 (fvp->v_mount->mnt_vnodecovered != NULLVP)) {
6092 /* switch fvp to the covered vnode */
6093 coveredvp = fvp->v_mount->mnt_vnodecovered;
6098 vnode_put(fvp);
6100 fvp = coveredvp;
6106 if ((fvp->v_mount != tdvp->v_mount) ||
6107 (tvp && (fvp->v_mount != tvp->v_mount))) {
6118 * getting the same vnode as target (fvp) and source (tvp).
6126 * NOTE - that fvp == tvp also occurs if they are hard linked and
6132 if (fvp == tvp && fdvp == tdvp) {
6140 if (holding_mntlock && fvp->v_mount != locked_mp) {
6150 if (tdvp != fdvp && fvp->v_type == VDIR) {
6170 locked_mp = fvp->v_mount;
6185 * since it may need to release the fs_nodelock on the fvp
6189 vnode_put(fvp);
6215 // save these off so we can later verify that fvp is the same
6216 oname = fvp->v_name;
6217 oparent = fvp->v_parent;
6223 if (fvp) {
6224 get_fse_info(fvp, &from_finfo, ctx);
6271 error = vn_rename(fdvp, &fvp, &fromnd->ni_cnd, fvap,
6292 fromnd->ni_vp = fvp;
6330 vnode_get_fse_info_from_vap(fvp, &from_finfo, fvap);
6360 mp = fvp->v_mountedhere;
6392 * check that fvp has the same name/parent pointers it
6398 if (batched || (oname == fvp->v_name && oparent == fvp->v_parent)) {
6406 vnode_update_identity(fvp, tdvp, tond->ni_cnd.cn_nameptr, tond->ni_cnd.cn_namelen, tond->ni_cnd.cn_hash, update_flags);
6440 if (fvp)
6441 vnode_put(fvp);
7298 vnode_t fvp;
7321 fvp = fnd.ni_vp;
7328 vnode_put(fvp);
7337 if (svp == fvp) {
7345 if (svp->v_mount != fvp->v_mount) {
7353 if ( (vnode_isreg(svp) == 0) || (vnode_isreg(fvp) == 0) ) {
7361 fvp, svp);
7365 if (((error = vnode_authorize(fvp, NULL, KAUTH_VNODE_READ_DATA | KAUTH_VNODE_WRITE_DATA, ctx)) != 0) ||
7371 need_fsevent(FSE_EXCHANGE, fvp) ||
7381 flen = safe_getpath(fvp, NULL, fpath, MAXPATHLEN, &from_truncated);
7385 get_fse_info(fvp, &f_finfo, ctx);
7394 error = VNOP_EXCHANGE(fvp, svp, 0, ctx);
7408 tmpname = fvp->v_name;
7409 fvp->v_name = svp->v_name;
7412 if (fvp->v_parent != svp->v_parent) {
7415 tmp = fvp->v_parent;
7416 fvp->v_parent = svp->v_parent;
7439 vnode_put(fvp);