Lines Matching defs:fvp

5927 	vnode_t tvp, fvp, tdvp, sdvp;
5942 fvp = fromnd.ni_vp;
5959 if (fvp->v_type == VDIR || (tvp && tvp->v_type == VDIR)) {
5967 if (fvp == tdvp)
5974 if (fvp == tvp)
5977 error = VNOP_COPYFILE(fvp, tdvp, tvp, &tond.ni_cnd, uap->mode, uap->flags, ctx);
5991 vnode_put(fvp);
6012 vnode_t fvp, fdvp;
6044 fvp = tvp = NULL;
6062 fvp = fromnd->ni_vp;
6064 if (fvp && fvp->v_type == VDIR)
6073 if (error == EISDIR && fvp->v_type == VDIR)
6082 if (!fvp) {
6085 * 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.
6087 * 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,
6089 * 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.
6101 error = vn_authorize_rename(fdvp, fvp, &fromnd->ni_cnd, tdvp, tvp, &tond->ni_cnd, ctx, NULL);
6122 if (fvp == tvp) {
6129 if (VNOP_PATHCONF(fvp, _PC_CASE_SENSITIVE, &pathconf_val, ctx) != 0 ||
6145 if ((fvp->v_flag & VROOT) &&
6146 (fvp->v_type == VDIR) &&
6148 (fvp->v_mountedhere == NULL) &&
6150 ((fvp->v_mount->mnt_flag & (MNT_UNION | MNT_ROOTFS)) == 0) &&
6151 (fvp->v_mount->mnt_vnodecovered != NULLVP)) {
6154 /* switch fvp to the covered vnode */
6155 coveredvp = fvp->v_mount->mnt_vnodecovered;
6160 vnode_put(fvp);
6162 fvp = coveredvp;
6168 if ((fvp->v_mount != tdvp->v_mount) ||
6169 (tvp && (fvp->v_mount != tvp->v_mount))) {
6180 * getting the same vnode as target (fvp) and source (tvp).
6188 * NOTE - that fvp == tvp also occurs if they are hard linked and
6194 if (fvp == tvp && fdvp == tdvp) {
6202 if (holding_mntlock && fvp->v_mount != locked_mp) {
6212 if (tdvp != fdvp && fvp->v_type == VDIR) {
6232 locked_mp = fvp->v_mount;
6247 * since it may need to release the fs_nodelock on the fvp
6251 vnode_put(fvp);
6277 // save these off so we can later verify that fvp is the same
6278 oname = fvp->v_name;
6279 oparent = fvp->v_parent;
6285 if (fvp) {
6286 get_fse_info(fvp, &from_finfo, ctx);
6333 error = vn_rename(fdvp, &fvp, &fromnd->ni_cnd, fvap,
6354 fromnd->ni_vp = fvp;
6392 vnode_get_fse_info_from_vap(fvp, &from_finfo, fvap);
6422 mp = fvp->v_mountedhere;
6454 * check that fvp has the same name/parent pointers it
6460 if (batched || (oname == fvp->v_name && oparent == fvp->v_parent)) {
6468 vnode_update_identity(fvp, tdvp, tond->ni_cnd.cn_nameptr, tond->ni_cnd.cn_namelen, tond->ni_cnd.cn_hash, update_flags);
6502 if (fvp)
6503 vnode_put(fvp);
7400 vnode_t fvp;
7423 fvp = fnd.ni_vp;
7430 vnode_put(fvp);
7439 if (svp == fvp) {
7447 if (svp->v_mount != fvp->v_mount) {
7453 if ( (vnode_isreg(fvp) == 0) || (vnode_isreg(svp) == 0)) {
7460 fvp, svp);
7464 if (((error = vnode_authorize(fvp, NULL, KAUTH_VNODE_READ_DATA | KAUTH_VNODE_WRITE_DATA, ctx)) != 0) ||
7470 need_fsevent(FSE_EXCHANGE, fvp) ||
7480 flen = safe_getpath(fvp, NULL, fpath, MAXPATHLEN, &from_truncated);
7484 get_fse_info(fvp, &f_finfo, ctx);
7493 error = VNOP_EXCHANGE(fvp, svp, 0, ctx);
7507 tmpname = fvp->v_name;
7508 fvp->v_name = svp->v_name;
7511 if (fvp->v_parent != svp->v_parent) {
7514 tmp = fvp->v_parent;
7515 fvp->v_parent = svp->v_parent;
7538 vnode_put(fvp);