| /NextBSD/sys/fs/fuse/ |
| HD | fuse_internal.c | 418 struct componentname *tcnp) in fuse_internal_rename() argument 424 fdisp_init(&fdi, sizeof(*fri) + fcnp->cn_namelen + tcnp->cn_namelen + 2); in fuse_internal_rename() 425 fdisp_make_vp(&fdi, FUSE_RENAME, fdvp, tcnp->cn_thread, tcnp->cn_cred); in fuse_internal_rename() 433 tcnp->cn_nameptr, tcnp->cn_namelen); in fuse_internal_rename() 435 tcnp->cn_namelen + 1] = '\0'; in fuse_internal_rename()
|
| HD | fuse_vnops.c | 1381 struct componentname *tcnp = ap->a_tcnp; in fuse_vnop_rename() local 1389 (int)tcnp->cn_namelen, tcnp->cn_nameptr); in fuse_vnop_rename() 1397 fcnp->cn_nameptr, (tcnp != NULL ? tcnp->cn_nameptr : "(NULL)")); in fuse_vnop_rename() 1410 err = fuse_internal_rename(fdvp, fcnp, tdvp, tcnp); in fuse_vnop_rename()
|
| HD | fuse_internal.h | 288 struct componentname *tcnp);
|
| /NextBSD/sys/fs/tmpfs/ |
| HD | tmpfs_vnops.c | 630 struct componentname *fcnp, struct componentname *tcnp) in tmpfs_rename_relock() argument 698 de = tmpfs_dir_lookup(VP_TO_TMPFS_DIR(tdvp), NULL, tcnp); in tmpfs_rename_relock() 760 struct componentname *tcnp = v->a_tcnp; in tmpfs_rename() local 775 MPASS(tcnp->cn_flags & HASBUF); in tmpfs_rename() 802 fcnp, tcnp); in tmpfs_rename() 879 if (fcnp->cn_namelen != tcnp->cn_namelen || in tmpfs_rename() 880 bcmp(fcnp->cn_nameptr, tcnp->cn_nameptr, fcnp->cn_namelen) != 0) { in tmpfs_rename() 881 newname = malloc(tcnp->cn_namelen, M_TMPFSNAME, M_WAITOK); in tmpfs_rename() 963 if (tcnp->cn_flags & ISWHITEOUT) in tmpfs_rename() 964 tmpfs_dir_whiteout_remove(tdvp, tcnp); in tmpfs_rename() [all …]
|
| /NextBSD/sys/fs/ext2fs/ |
| HD | ext2_vnops.c | 729 struct componentname *tcnp = ap->a_tcnp; in ext2_rename() local 738 if ((tcnp->cn_flags & HASBUF) == 0 || in ext2_rename() 796 dp == ip || (fcnp->cn_flags | tcnp->cn_flags) & ISDOTDOT || in ext2_rename() 840 error = VOP_ACCESS(fvp, VWRITE, tcnp->cn_cred, tcnp->cn_thread); in ext2_rename() 849 error = ext2_checkpath(ip, dp, tcnp->cn_cred); in ext2_rename() 853 error = relookup(tdvp, &tvp, tcnp); in ext2_rename() 888 error = ext2_direnter(ip, tdvp, tcnp); in ext2_rename() 912 if ((dp->i_mode & S_ISTXT) && tcnp->cn_cred->cr_uid != 0 && in ext2_rename() 913 tcnp->cn_cred->cr_uid != dp->i_uid && in ext2_rename() 914 xp->i_uid != tcnp->cn_cred->cr_uid) { in ext2_rename() [all …]
|
| /NextBSD/sys/ufs/ufs/ |
| HD | ufs_vnops.c | 1111 struct componentname *tcnp = ap->a_tcnp; local 1123 if ((tcnp->cn_flags & HASBUF) == 0 || 1195 error = ufs_lookup_ino(tdvp, NULL, tcnp, &ino); 1271 (fcnp->cn_flags | tcnp->cn_flags) & ISDOTDOT) { 1295 error = VOP_ACCESS(fvp, VWRITE, tcnp->cn_cred, tcnp->cn_thread); 1298 error = ufs_checkpath(ino, fdp->i_number, tdp, tcnp->cn_cred, 1318 if ((tcnp->cn_flags & SAVESTART) == 0) 1364 ufs_makedirentry(fip, tcnp, &newdir); 1365 error = ufs_direnter(tdvp, NULL, &newdir, tcnp, NULL, 1); 1387 VOP_ACCESS(tdvp, VADMIN, tcnp->cn_cred, td) && [all …]
|
| /NextBSD/sys/fs/nfsclient/ |
| HD | nfs_clvnops.c | 1773 struct componentname *tcnp = ap->a_tcnp; in nfs_rename() local 1780 KASSERT((tcnp->cn_flags & HASBUF) != 0 && in nfs_rename() 1813 error = VOP_FSYNC(tvp, MNT_WAIT, tcnp->cn_thread); in nfs_rename() 1823 tvp->v_type != VDIR && !nfs_sillyrename(tdvp, tvp, tcnp)) { in nfs_rename() 1829 tdvp, tvp, tcnp->cn_nameptr, tcnp->cn_namelen, tcnp->cn_cred, in nfs_rename() 1830 tcnp->cn_thread); in nfs_rename() 1839 tdnp->n_fhp->nfh_len + tcnp->cn_namelen - 1, in nfs_rename() 1844 (fnp->n_v4->n4_namelen != tcnp->cn_namelen || in nfs_rename() 1845 NFSBCMP(tcnp->cn_nameptr, NFS4NODENAME(fnp->n_v4), in nfs_rename() 1846 tcnp->cn_namelen) || in nfs_rename() [all …]
|
| /NextBSD/sys/fs/smbfs/ |
| HD | smbfs_vnops.c | 626 struct componentname *tcnp = ap->a_tcnp; local 653 smb_makescred(scred, tcnp->cn_thread, tcnp->cn_cred); 660 tcnp->cn_nameptr, tcnp->cn_namelen, flags, scred); 674 tcnp->cn_nameptr, tcnp->cn_namelen, scred);
|
| /NextBSD/sys/fs/msdosfs/ |
| HD | msdosfs_vnops.c | 934 struct componentname *tcnp = ap->a_tcnp; in msdosfs_rename() local 955 if ((tcnp->cn_flags & HASBUF) == 0 || in msdosfs_rename() 1004 (tcnp->cn_flags & ISDOTDOT) || in msdosfs_rename() 1036 error = VOP_ACCESS(fvp, VWRITE, tcnp->cn_cred, tcnp->cn_thread); in msdosfs_rename() 1052 if ((tcnp->cn_flags & SAVESTART) == 0) in msdosfs_rename() 1054 error = relookup(tdvp, &tvp, tcnp); in msdosfs_rename() 1093 error = uniqdosname(VTODE(tdvp), tcnp, toname); in msdosfs_rename() 1157 error = createde(ip, dp, (struct denode **)0, tcnp); in msdosfs_rename()
|
| /NextBSD/sys/fs/nandfs/ |
| HD | nandfs_vnops.c | 1520 struct componentname *tcnp = ap->a_tcnp; in nandfs_rename() local 1601 ((fcnp->cn_flags | tcnp->cn_flags) & ISDOTDOT) || in nandfs_rename() 1628 error = VOP_ACCESS(fvp, VWRITE, tcnp->cn_cred, tcnp->cn_thread); in nandfs_rename() 1638 error = nandfs_checkpath(fnode, tdnode, tcnp->cn_cred); in nandfs_rename() 1643 error = relookup(tdvp, &tvp, tcnp); in nandfs_rename() 1670 error = nandfs_add_dirent(tdvp, fnode->nn_ino, tcnp->cn_nameptr, in nandfs_rename() 1671 tcnp->cn_namelen, IFTODT(fnode->nn_inode.i_mode)); in nandfs_rename() 1687 tcnp->cn_cred->cr_uid != 0 && in nandfs_rename() 1688 tcnp->cn_cred->cr_uid != tdnode->nn_inode.i_uid && in nandfs_rename() 1689 tnode->nn_inode.i_uid != tcnp->cn_cred->cr_uid) { in nandfs_rename() [all …]
|
| /NextBSD/sys/fs/unionfs/ |
| HD | union_vnops.c | 1110 struct componentname *tcnp; in unionfs_rename() local 1133 tcnp = ap->a_tcnp; in unionfs_rename() 1144 if (!(fcnp->cn_flags & HASBUF) || !(tcnp->cn_flags & HASBUF)) in unionfs_rename() 1266 error = unionfs_relookup_for_rename(tdvp, tcnp, td); in unionfs_rename() 1273 error = VOP_RENAME(rfdvp, rfvp, fcnp, rtdvp, rtvp, tcnp); in unionfs_rename()
|
| /NextBSD/sys/kern/ |
| HD | vnode_if.src | 288 IN struct componentname *tcnp;
|