Searched refs:tcnp (Results 1 - 12 of 12) sorted by relevance

/freebsd-11-stable/sys/fs/fuse/
H A Dfuse_internal.c418 struct componentname *tcnp)
424 fdisp_init(&fdi, sizeof(*fri) + fcnp->cn_namelen + tcnp->cn_namelen + 2);
425 fdisp_make_vp(&fdi, FUSE_RENAME, fdvp, tcnp->cn_thread, tcnp->cn_cred);
433 tcnp->cn_nameptr, tcnp->cn_namelen);
435 tcnp->cn_namelen + 1] = '\0';
415 fuse_internal_rename(struct vnode *fdvp, struct componentname *fcnp, struct vnode *tdvp, struct componentname *tcnp) argument
H A Dfuse_internal.h288 struct componentname *tcnp);
H A Dfuse_vnops.c1431 struct componentname *tcnp = ap->a_tcnp; local
1439 (int)tcnp->cn_namelen, tcnp->cn_nameptr);
1447 fcnp->cn_nameptr, (tcnp != NULL ? tcnp->cn_nameptr : "(NULL)"));
1460 err = fuse_internal_rename(fdvp, fcnp, tdvp, tcnp);
/freebsd-11-stable/sys/fs/tmpfs/
H A Dtmpfs_vnops.c658 struct componentname *fcnp, struct componentname *tcnp)
726 de = tmpfs_dir_lookup(VP_TO_TMPFS_DIR(tdvp), NULL, tcnp);
788 struct componentname *tcnp = v->a_tcnp; local
801 MPASS(tcnp->cn_flags & HASBUF);
826 fcnp, tcnp);
907 if (fcnp->cn_namelen != tcnp->cn_namelen ||
908 bcmp(fcnp->cn_nameptr, tcnp->cn_nameptr, fcnp->cn_namelen) != 0) {
909 newname = malloc(tcnp->cn_namelen, M_TMPFSNAME, M_WAITOK);
1003 if (tcnp->cn_flags & ISWHITEOUT)
1004 tmpfs_dir_whiteout_remove(tdvp, tcnp);
656 tmpfs_rename_relock(struct vnode *fdvp, struct vnode **fvpp, struct vnode *tdvp, struct vnode **tvpp, struct componentname *fcnp, struct componentname *tcnp) argument
[all...]
/freebsd-11-stable/sys/fs/ext2fs/
H A Dext2_vnops.c744 struct componentname *tcnp = ap->a_tcnp; local
753 if ((tcnp->cn_flags & HASBUF) == 0 ||
811 dp == ip || (fcnp->cn_flags | tcnp->cn_flags) & ISDOTDOT ||
855 error = VOP_ACCESS(fvp, VWRITE, tcnp->cn_cred, tcnp->cn_thread);
864 error = ext2_checkpath(ip, dp, tcnp->cn_cred);
868 error = relookup(tdvp, &tvp, tcnp);
903 error = ext2_direnter(ip, tdvp, tcnp);
927 if ((dp->i_mode & S_ISTXT) && tcnp->cn_cred->cr_uid != 0 &&
928 tcnp
[all...]
/freebsd-11-stable/sys/ufs/ufs/
H A Dufs_vnops.c1102 struct componentname *tcnp = ap->a_tcnp; local
1114 if ((tcnp->cn_flags & HASBUF) == 0 ||
1186 error = ufs_lookup_ino(tdvp, NULL, tcnp, &ino);
1262 (fcnp->cn_flags | tcnp->cn_flags) & ISDOTDOT) {
1286 error = VOP_ACCESS(fvp, VWRITE, tcnp->cn_cred, tcnp->cn_thread);
1289 error = ufs_checkpath(ino, fdp->i_number, tdp, tcnp->cn_cred,
1309 if ((tcnp->cn_flags & SAVESTART) == 0)
1355 ufs_makedirentry(fip, tcnp, &newdir);
1356 error = ufs_direnter(tdvp, NULL, &newdir, tcnp, NUL
[all...]
/freebsd-11-stable/sys/fs/smbfs/
H A Dsmbfs_vnops.c627 struct componentname *tcnp = ap->a_tcnp; local
654 smb_makescred(scred, tcnp->cn_thread, tcnp->cn_cred);
661 tcnp->cn_nameptr, tcnp->cn_namelen, flags, scred);
675 tcnp->cn_nameptr, tcnp->cn_namelen, scred);
/freebsd-11-stable/sys/fs/msdosfs/
H A Dmsdosfs_vnops.c944 struct componentname *tcnp = ap->a_tcnp; local
961 if ((tcnp->cn_flags & HASBUF) == 0 ||
1010 (tcnp->cn_flags & ISDOTDOT) ||
1042 error = VOP_ACCESS(fvp, VWRITE, tcnp->cn_cred, tcnp->cn_thread);
1058 if ((tcnp->cn_flags & SAVESTART) == 0)
1060 error = relookup(tdvp, &tvp, tcnp);
1095 * Convert the filename in tcnp into a dos filename. We copy this
1099 error = uniqdosname(VTODE(tdvp), tcnp, toname);
1163 error = createde(ip, dp, (struct denode **)0, tcnp);
[all...]
/freebsd-11-stable/sys/fs/nandfs/
H A Dnandfs_vnops.c1521 struct componentname *tcnp = ap->a_tcnp; local
1602 ((fcnp->cn_flags | tcnp->cn_flags) & ISDOTDOT) ||
1629 error = VOP_ACCESS(fvp, VWRITE, tcnp->cn_cred, tcnp->cn_thread);
1639 error = nandfs_checkpath(fnode, tdnode, tcnp->cn_cred);
1644 error = relookup(tdvp, &tvp, tcnp);
1671 error = nandfs_add_dirent(tdvp, fnode->nn_ino, tcnp->cn_nameptr,
1672 tcnp->cn_namelen, IFTODT(fnode->nn_inode.i_mode));
1688 tcnp->cn_cred->cr_uid != 0 &&
1689 tcnp
[all...]
/freebsd-11-stable/sys/fs/nfsclient/
H A Dnfs_clvnops.c1756 struct componentname *tcnp = ap->a_tcnp; local
1763 KASSERT((tcnp->cn_flags & HASBUF) != 0 &&
1796 error = VOP_FSYNC(tvp, MNT_WAIT, tcnp->cn_thread);
1806 tvp->v_type != VDIR && !nfs_sillyrename(tdvp, tvp, tcnp)) {
1812 tdvp, tvp, tcnp->cn_nameptr, tcnp->cn_namelen, tcnp->cn_cred,
1813 tcnp->cn_thread);
1822 tdnp->n_fhp->nfh_len + tcnp->cn_namelen - 1,
1827 (fnp->n_v4->n4_namelen != tcnp
[all...]
/freebsd-11-stable/sys/fs/unionfs/
H A Dunion_vnops.c1110 struct componentname *tcnp; local
1133 tcnp = ap->a_tcnp;
1144 if (!(fcnp->cn_flags & HASBUF) || !(tcnp->cn_flags & HASBUF))
1266 error = unionfs_relookup_for_rename(tdvp, tcnp, td);
1273 error = VOP_RENAME(rfdvp, rfvp, fcnp, rtdvp, rtvp, tcnp);
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dzfs_vnops.c3508 const struct componentname *scnp, const struct componentname *tcnp)
3514 const char *tnm = tcnp->cn_nameptr;
3593 if ((tcnp->cn_flags & ISDOTDOT) != 0)
3749 vnode_t *tdvp, vnode_t **tvpp, struct componentname *tcnp,
3757 char *tnm = tcnp->cn_nameptr;
3775 error = zfs_rename_relock(sdvp, svpp, tdvp, tvpp, scnp, tcnp);
3852 (scnp->cn_flags | tcnp->cn_flags) & ISDOTDOT) {
3506 zfs_rename_relock(struct vnode *sdvp, struct vnode **svpp, struct vnode *tdvp, struct vnode **tvpp, const struct componentname *scnp, const struct componentname *tcnp) argument
3748 zfs_rename(vnode_t *sdvp, vnode_t **svpp, struct componentname *scnp, vnode_t *tdvp, vnode_t **tvpp, struct componentname *tcnp, cred_t *cr) argument

Completed in 151 milliseconds