• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/vfs/

Lines Matching refs:fvp

4632 	vnode_t tvp, fvp, tdvp, sdvp;
4647 fvp = fromnd.ni_vp;
4663 if (fvp->v_type == VDIR || (tvp && tvp->v_type == VDIR)) {
4671 if (fvp == tdvp)
4678 if (fvp == tvp)
4681 error = VNOP_COPYFILE(fvp, tdvp, tvp, &tond.ni_cnd, uap->mode, uap->flags, ctx);
4695 vnode_put(fvp);
4716 vnode_t fvp, fdvp;
4734 fvp = tvp = NULL;
4743 fvp = fromnd.ni_vp;
4746 error = mac_vnode_check_rename_from(ctx, fdvp, fvp, &fromnd.ni_cnd);
4752 if (fvp->v_type == VDIR)
4759 if (error == EISDIR && fvp->v_type == VDIR)
4774 if (fvp->v_type == VDIR && tvp->v_type != VDIR) {
4777 } else if (fvp->v_type != VDIR && tvp->v_type == VDIR) {
4782 if (fvp == tdvp) {
4791 if (fvp == tvp) {
4798 if (VNOP_PATHCONF(fvp, _PC_CASE_SENSITIVE, &pathconf_val, ctx) != 0 ||
4832 * If fvp is a directory, and we are changing it's parent,
4835 if (vnode_isdir(fvp)) {
4836 if ((error = vnode_authorize(fvp, fdvp, KAUTH_VNODE_DELETE | KAUTH_VNODE_ADD_SUBDIRECTORY, ctx)) != 0)
4839 if ((error = vnode_authorize(fvp, fdvp, KAUTH_VNODE_DELETE, ctx)) != 0)
4846 vnode_isdir(fvp) ? KAUTH_VNODE_ADD_SUBDIRECTORY : KAUTH_VNODE_ADD_FILE,
4861 vnode_isdir(fvp) ? KAUTH_VNODE_ADD_SUBDIRECTORY : KAUTH_VNODE_ADD_FILE, ctx)) != 0)
4892 if ((fvp->v_flag & VROOT) &&
4893 (fvp->v_type == VDIR) &&
4895 (fvp->v_mountedhere == NULL) &&
4897 ((fvp->v_mount->mnt_flag & (MNT_UNION | MNT_ROOTFS)) == 0) &&
4898 (fvp->v_mount->mnt_vnodecovered != NULLVP)) {
4901 /* switch fvp to the covered vnode */
4902 coveredvp = fvp->v_mount->mnt_vnodecovered;
4907 vnode_put(fvp);
4909 fvp = coveredvp;
4915 if ((fvp->v_mount != tdvp->v_mount) ||
4916 (tvp && (fvp->v_mount != tvp->v_mount))) {
4923 if (fvp->v_type == VDIR &&
4924 ((fdvp == fvp) ||
4937 * o fvp
4945 if (tdvp->v_parent == fvp) {
4956 * getting the same vnode as target (fvp) and source (tvp).
4964 * NOTE - that fvp == tvp also occurs if they are hard linked - NOTE
4967 if (fvp == tvp && fdvp == tdvp) {
4975 if (holding_mntlock && fvp->v_mount != locked_mp) {
4985 if (tdvp != fdvp && fvp->v_type == VDIR) {
5005 locked_mp = fvp->v_mount;
5020 * since it may need to release the fs_nodelock on the fvp
5024 vnode_put(fvp);
5049 // save these off so we can later verify that fvp is the same
5050 oname = fvp->v_name;
5051 oparent = fvp->v_parent;
5054 need_event = need_fsevent(FSE_RENAME, fvp);
5056 get_fse_info(fvp, &from_finfo, ctx);
5106 error = VNOP_RENAME(fdvp, fvp, &fromnd.ni_cnd,
5170 mp = fvp->v_mountedhere;
5202 * check that fvp has the same name/parent pointers it
5206 if (oname == fvp->v_name && oparent == fvp->v_parent) {
5214 vnode_update_identity(fvp, tdvp, tond.ni_cnd.cn_nameptr, tond.ni_cnd.cn_namelen, tond.ni_cnd.cn_hash, update_flags);
5248 if (fvp)
5249 vnode_put(fvp);
6041 vnode_t fvp;
6061 fvp = fnd.ni_vp;
6068 vnode_put(fvp);
6077 if (svp == fvp) {
6085 if (svp->v_mount != fvp->v_mount) {
6092 fvp, svp);
6096 if (((error = vnode_authorize(fvp, NULL, KAUTH_VNODE_READ_DATA | KAUTH_VNODE_WRITE_DATA, ctx)) != 0) ||
6102 need_fsevent(FSE_EXCHANGE, fvp) ||
6113 if (vn_getpath(fvp, fpath, &flen) != 0 || fpath[0] == '\0') {
6114 printf("exchange: vn_getpath(fvp=%p) failed <<%s>>\n",
6115 fvp, fpath);
6122 get_fse_info(fvp, &f_finfo, ctx);
6127 error = VNOP_EXCHANGE(fvp, svp, 0, ctx);
6141 tmpname = fvp->v_name;
6142 fvp->v_name = svp->v_name;
6145 if (fvp->v_parent != svp->v_parent) {
6148 tmp = fvp->v_parent;
6149 fvp->v_parent = svp->v_parent;
6172 vnode_put(fvp);