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

/freebsd-12-stable/sys/fs/tmpfs/
H A Dtmpfs_vnops.c670 struct componentname *fcnp, struct componentname *tcnp)
738 de = tmpfs_dir_lookup(VP_TO_TMPFS_DIR(tdvp), NULL, tcnp);
800 struct componentname *tcnp = v->a_tcnp; local
813 MPASS(tcnp->cn_flags & HASBUF);
838 fcnp, tcnp);
919 if (fcnp->cn_namelen != tcnp->cn_namelen ||
920 bcmp(fcnp->cn_nameptr, tcnp->cn_nameptr, fcnp->cn_namelen) != 0) {
921 newname = malloc(tcnp->cn_namelen, M_TMPFSNAME, M_WAITOK);
1015 if (tcnp->cn_flags & ISWHITEOUT)
1016 tmpfs_dir_whiteout_remove(tdvp, tcnp);
668 tmpfs_rename_relock(struct vnode *fdvp, struct vnode **fvpp, struct vnode *tdvp, struct vnode **tvpp, struct componentname *fcnp, struct componentname *tcnp) argument
[all...]
/freebsd-12-stable/sys/fs/fuse/
H A Dfuse_internal.c732 struct componentname *tcnp)
738 fdisp_init(&fdi, sizeof(*fri) + fcnp->cn_namelen + tcnp->cn_namelen + 2);
739 fdisp_make_vp(&fdi, FUSE_RENAME, fdvp, tcnp->cn_thread, tcnp->cn_cred);
747 tcnp->cn_nameptr, tcnp->cn_namelen);
749 tcnp->cn_namelen + 1] = '\0';
729 fuse_internal_rename(struct vnode *fdvp, struct componentname *fcnp, struct vnode *tdvp, struct componentname *tcnp) argument
H A Dfuse_internal.h268 struct vnode *tdvp, struct componentname *tcnp);
H A Dfuse_vnops.c1610 struct componentname *tcnp = ap->a_tcnp; local
1639 tcnp->cn_thread, tcnp->cn_cred);
1644 err = fuse_internal_rename(fdvp, fcnp, tdvp, tcnp);
/freebsd-12-stable/sys/fs/ext2fs/
H A Dext2_vnops.c784 struct componentname *tcnp = ap->a_tcnp; local
793 if ((tcnp->cn_flags & HASBUF) == 0 ||
853 dp == ip || (fcnp->cn_flags | tcnp->cn_flags) & ISDOTDOT ||
897 error = VOP_ACCESS(fvp, VWRITE, tcnp->cn_cred, tcnp->cn_thread);
906 error = ext2_checkpath(ip, dp, tcnp->cn_cred);
910 error = relookup(tdvp, &tvp, tcnp);
944 error = ext2_direnter(ip, tdvp, tcnp);
968 if ((dp->i_mode & S_ISTXT) && tcnp->cn_cred->cr_uid != 0 &&
969 tcnp
[all...]
/freebsd-12-stable/sys/ufs/ufs/
H A Dufs_vnops.c1103 struct componentname *tcnp = ap->a_tcnp; local
1115 if ((tcnp->cn_flags & HASBUF) == 0 ||
1187 error = ufs_lookup_ino(tdvp, NULL, tcnp, &ino);
1263 (fcnp->cn_flags | tcnp->cn_flags) & ISDOTDOT) {
1287 error = VOP_ACCESS(fvp, VWRITE, tcnp->cn_cred, tcnp->cn_thread);
1290 error = ufs_checkpath(ino, fdp->i_number, tdp, tcnp->cn_cred,
1310 if ((tcnp->cn_flags & SAVESTART) == 0)
1356 ufs_makedirentry(fip, tcnp, &newdir);
1357 error = ufs_direnter(tdvp, NULL, &newdir, tcnp, NUL
[all...]
/freebsd-12-stable/sys/fs/smbfs/
H A Dsmbfs_vnops.c629 struct componentname *tcnp = ap->a_tcnp; local
656 smb_makescred(scred, tcnp->cn_thread, tcnp->cn_cred);
663 tcnp->cn_nameptr, tcnp->cn_namelen, flags, scred);
677 tcnp->cn_nameptr, tcnp->cn_namelen, scred);
/freebsd-12-stable/sys/fs/msdosfs/
H A Dmsdosfs_vnops.c945 struct componentname *tcnp = ap->a_tcnp; local
962 if ((tcnp->cn_flags & HASBUF) == 0 ||
1011 (tcnp->cn_flags & ISDOTDOT) ||
1043 error = VOP_ACCESS(fvp, VWRITE, tcnp->cn_cred, tcnp->cn_thread);
1059 if ((tcnp->cn_flags & SAVESTART) == 0)
1061 error = relookup(tdvp, &tvp, tcnp);
1096 * Convert the filename in tcnp into a dos filename. We copy this
1100 error = uniqdosname(VTODE(tdvp), tcnp, toname);
1164 error = createde(ip, dp, (struct denode **)0, tcnp);
[all...]
/freebsd-12-stable/sys/fs/nandfs/
H A Dnandfs_vnops.c1524 struct componentname *tcnp = ap->a_tcnp; local
1605 ((fcnp->cn_flags | tcnp->cn_flags) & ISDOTDOT) ||
1632 error = VOP_ACCESS(fvp, VWRITE, tcnp->cn_cred, tcnp->cn_thread);
1642 error = nandfs_checkpath(fnode, tdnode, tcnp->cn_cred);
1647 error = relookup(tdvp, &tvp, tcnp);
1674 error = nandfs_add_dirent(tdvp, fnode->nn_ino, tcnp->cn_nameptr,
1675 tcnp->cn_namelen, IFTODT(fnode->nn_inode.i_mode));
1691 tcnp->cn_cred->cr_uid != 0 &&
1692 tcnp
[all...]
/freebsd-12-stable/sys/fs/nfsclient/
H A Dnfs_clvnops.c1845 struct componentname *tcnp = ap->a_tcnp; local
1852 KASSERT((tcnp->cn_flags & HASBUF) != 0 &&
1885 error = VOP_FSYNC(tvp, MNT_WAIT, tcnp->cn_thread);
1895 tvp->v_type != VDIR && !nfs_sillyrename(tdvp, tvp, tcnp)) {
1901 tdvp, tvp, tcnp->cn_nameptr, tcnp->cn_namelen, tcnp->cn_cred,
1902 tcnp->cn_thread);
1911 tdnp->n_fhp->nfh_len + tcnp->cn_namelen - 1,
1916 (fnp->n_v4->n4_namelen != tcnp
[all...]
/freebsd-12-stable/sys/fs/unionfs/
H A Dunion_vnops.c1112 struct componentname *tcnp; local
1135 tcnp = ap->a_tcnp;
1146 if (!(fcnp->cn_flags & HASBUF) || !(tcnp->cn_flags & HASBUF))
1268 error = unionfs_relookup_for_rename(tdvp, tcnp, td);
1275 error = VOP_RENAME(rfdvp, rfvp, fcnp, rtdvp, rtvp, tcnp);
/freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dzfs_vnops.c3517 const struct componentname *scnp, const struct componentname *tcnp)
3523 const char *tnm = tcnp->cn_nameptr;
3602 if ((tcnp->cn_flags & ISDOTDOT) != 0)
3758 vnode_t *tdvp, vnode_t **tvpp, struct componentname *tcnp,
3766 char *tnm = tcnp->cn_nameptr;
3784 error = zfs_rename_relock(sdvp, svpp, tdvp, tvpp, scnp, tcnp);
3861 (scnp->cn_flags | tcnp->cn_flags) & ISDOTDOT) {
3515 zfs_rename_relock(struct vnode *sdvp, struct vnode **svpp, struct vnode *tdvp, struct vnode **tvpp, const struct componentname *scnp, const struct componentname *tcnp) argument
3757 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 284 milliseconds