Lines Matching refs:tdvp
109 struct vnode *tdvp = ap->a_tdvp; in msdosfs_rename() local
119 KASSERT(tdvp != NULL); in msdosfs_rename()
124 KASSERT(VOP_ISLOCKED(tdvp) == LK_EXCLUSIVE); in msdosfs_rename()
127 KASSERT(tdvp->v_type == VDIR); in msdosfs_rename()
140 VOP_UNLOCK(tdvp); in msdosfs_rename()
141 if ((tvp != NULL) && (tvp != tdvp)) in msdosfs_rename()
148 if (tvp == tdvp) { in msdosfs_rename()
153 error = msdosfs_sane_rename(fdvp, fcnp, tdvp, tcnp, cred, false); in msdosfs_rename()
161 vrele(tdvp); in msdosfs_rename()
181 struct vnode *tdvp, struct componentname *tcnp, in msdosfs_sane_rename() argument
187 fdvp, fcnp, &fmlr, tdvp, tcnp, &tmlr, in msdosfs_sane_rename()
251 struct vnode *tdvp, struct vnode *tvp) in msdosfs_gro_rename_check_possible() argument
257 (void)tdvp; in msdosfs_gro_rename_check_possible()
262 KASSERT(tdvp != NULL); in msdosfs_gro_rename_check_possible()
265 KASSERT(tdvp != fvp); in msdosfs_gro_rename_check_possible()
266 KASSERT(tdvp != tvp); in msdosfs_gro_rename_check_possible()
270 KASSERT(tdvp->v_mount == mp); in msdosfs_gro_rename_check_possible()
274 KASSERT(VOP_ISLOCKED(tdvp) == LK_EXCLUSIVE); in msdosfs_gro_rename_check_possible()
287 struct vnode *tdvp, struct vnode *tvp) in msdosfs_gro_rename_check_permitted() argument
294 KASSERT(tdvp != NULL); in msdosfs_gro_rename_check_permitted()
297 KASSERT(tdvp != fvp); in msdosfs_gro_rename_check_permitted()
298 KASSERT(tdvp != tvp); in msdosfs_gro_rename_check_permitted()
302 KASSERT(tdvp->v_mount == mp); in msdosfs_gro_rename_check_permitted()
306 KASSERT(VOP_ISLOCKED(tdvp) == LK_EXCLUSIVE); in msdosfs_gro_rename_check_permitted()
315 tdvp, msdosfs_vnode_mode(tdvp), pmp->pm_uid, in msdosfs_gro_rename_check_permitted()
372 struct vnode *tdvp, struct componentname *tcnp, in msdosfs_gro_rename() argument
387 KASSERT(tdvp != NULL); in msdosfs_gro_rename()
393 KASSERT(tdvp != fvp); in msdosfs_gro_rename()
394 KASSERT(tdvp != tvp); in msdosfs_gro_rename()
398 KASSERT(tdvp->v_mount == mp); in msdosfs_gro_rename()
402 KASSERT(VOP_ISLOCKED(tdvp) == LK_EXCLUSIVE); in msdosfs_gro_rename()
432 reparent_p = (fdvp != tdvp); in msdosfs_gro_rename()
434 VTODE(tdvp)->de_StartCluster)); in msdosfs_gro_rename()
442 error = msdosfs_removede(VTODE(tdvp), VTODE(tvp), tmlr); in msdosfs_gro_rename()
452 error = msdosfs_uniqdosname(VTODE(tdvp), tcnp, toname); in msdosfs_gro_rename()
469 error = msdosfs_createde(VTODE(fvp), VTODE(tdvp), tmlr, 0, tcnp); in msdosfs_gro_rename()
489 (void)msdosfs_removede(VTODE(tdvp), VTODE(fvp), tmlr); in msdosfs_gro_rename()
501 error = msdosfs_pcbmap(VTODE(tdvp), in msdosfs_gro_rename()
522 error = msdosfs_rename_replace_dotdot(fvp, fdvp, tdvp, cred); in msdosfs_gro_rename()
531 genfs_rename_cache_purge(fdvp, fvp, tdvp, tvp); in msdosfs_gro_rename()
636 struct vnode *fdvp, struct vnode *tdvp, in msdosfs_gro_genealogy() argument
646 KASSERT(tdvp != NULL); in msdosfs_gro_genealogy()
647 KASSERT(fdvp != tdvp); in msdosfs_gro_genealogy()
650 KASSERT(tdvp->v_mount == mp); in msdosfs_gro_genealogy()
652 KASSERT(tdvp->v_type == VDIR); in msdosfs_gro_genealogy()
661 error = msdosfs_gro_lock_directory(mp, tdvp); in msdosfs_gro_genealogy()
665 vp = tdvp; in msdosfs_gro_genealogy()
767 struct vnode *fdvp, struct vnode *tdvp, in msdosfs_rename_replace_dotdot() argument
792 putushort(dotdotp->deStartCluster, VTODE(tdvp)->de_StartCluster); in msdosfs_rename_replace_dotdot()
795 VTODE(tdvp)->de_StartCluster >> 16); in msdosfs_rename_replace_dotdot()