/src/sys/miscfs/genfs/ |
genfs_rename.c | 74 * . tcnp (to component name), 83 struct vnode *tdvp, struct componentname *tcnp, 89 fdvp, fcnp, &fulr, tdvp, tcnp, &tulr, 145 * . tcnp (to component name). 163 struct vnode *tdvp, struct componentname *tcnp, 179 struct componentname *tcnp = ap->a_tcnp; local in function:genfs_insane_rename 188 KASSERT(tcnp != NULL); 200 * XXX Want a better equality test. `tcnp->cn_cred == cred' 204 KASSERT(kauth_cred_uidmatch(cred, tcnp->cn_cred)); 221 error = (*sane_rename)(fdvp, fcnp, tdvp, tcnp, cred, false) [all...] |
genfs.h | 123 struct vnode *tdvp, struct componentname *tcnp,
|
/src/sys/fs/tmpfs/ |
tmpfs_mem.c | 232 tmpfs_strname_neqlen(struct componentname *fcnp, struct componentname *tcnp) 235 const size_t tln = tcnp->cn_namelen; 237 return (fln != tln) || memcmp(fcnp->cn_nameptr, tcnp->cn_nameptr, fln);
|
tmpfs_rename.c | 73 * . tcnp (to component name), 82 struct vnode *tdvp, struct componentname *tcnp, 88 fdvp, fcnp, &fdirent, tdvp, tcnp, &tdirent, 266 struct vnode *tdvp, struct componentname *tcnp, 282 KASSERT(tcnp != NULL); 304 if (tmpfs_strname_neqlen(fcnp, tcnp)) { 306 tcnp->cn_namelen); 357 KASSERT(tcnp->cn_namelen <= TMPFS_MAXNAMLEN); 361 (*fdep)->td_namelen = (uint16_t)tcnp->cn_namelen; 362 (void)memcpy(newname, tcnp->cn_nameptr, tcnp->cn_namelen) [all...] |
/src/sys/fs/udf/ |
udf_rename.c | 75 * . tcnp (to component name), 83 struct vnode *tdvp, struct componentname *tcnp, 87 fcnp->cn_nameptr, tcnp->cn_nameptr)); 89 fdvp, fcnp, NULL, tdvp, tcnp, NULL, 323 struct vnode *tdvp, struct componentname *tcnp, 336 KASSERT(tcnp != NULL); 353 fcnp->cn_nameptr, tcnp->cn_nameptr)); 367 udf_dir_detach(tdnode->ump, tdnode, tnode, tcnp); 377 error = udf_dir_attach(tdnode->ump, tdnode, fnode, &fvap, tcnp); 400 udf_dir_detach(tdnode->ump, tdnode, fnode, tcnp); [all...] |
/src/sys/ufs/lfs/ |
lfs_rename.c | 731 struct vnode *tdvp, struct componentname *tcnp, 746 KASSERT(tcnp != NULL); 842 NULL, tcnp, VTOI(fvp)->i_number, LFS_IFTODT(VTOI(fvp)->i_mode), 868 * Make the target directory's entry for tcnp point at 1014 struct vnode *tdvp, struct componentname *tcnp, 1025 KASSERT(tcnp != NULL); 1050 tdvp, tcnp, tde, tvp, 1092 * . tcnp (to component name), 1101 struct vnode *tdvp, struct componentname *tcnp, 1113 KASSERT(tcnp != NULL) [all...] |
/src/sys/fs/msdosfs/ |
msdosfs_rename.c | 80 * . tcnp (to component name). 111 struct componentname *tcnp = ap->a_tcnp; local in function:msdosfs_rename 120 KASSERT(tcnp != NULL); 130 KASSERT(kauth_cred_uidmatch(cred, tcnp->cn_cred)); 153 error = msdosfs_sane_rename(fdvp, fcnp, tdvp, tcnp, cred, false); 174 * . tcnp (to component name). 181 struct vnode *tdvp, struct componentname *tcnp, 187 fdvp, fcnp, &fmlr, tdvp, tcnp, &tmlr, 372 struct vnode *tdvp, struct componentname *tcnp, 388 KASSERT(tcnp != NULL) [all...] |
/src/sys/ufs/ufs/ |
ufs_rename.c | 86 * . tcnp (to component name), 95 struct vnode *tdvp, struct componentname *tcnp, 101 fdvp, fcnp, &fulr, tdvp, tcnp, &tulr, 284 struct vnode *tdvp, struct componentname *tcnp, 299 KASSERT(tcnp != NULL); 394 ufs_makedirentry(VTOI(fvp), tcnp, newdir); 395 error = ufs_direnter(tdvp, tulr, NULL, newdir, tcnp, NULL); 421 * Make the target directory's entry for tcnp point at
|
/src/sys/ufs/ext2fs/ |
ext2fs_rename.c | 85 * . tcnp (to component name), 94 struct vnode *tdvp, struct componentname *tcnp, 100 fdvp, fcnp, &fulr, tdvp, tcnp, &tulr, 274 struct vnode *tdvp, struct componentname *tcnp, 289 KASSERT(tcnp != NULL); 375 error = ext2fs_direnter(VTOI(fvp), tdvp, tulr, tcnp); 398 * Make the target directory's entry for tcnp point at 401 error = ext2fs_dirrewrite(VTOI(tdvp), tulr, VTOI(fvp), tcnp);
|
/src/sys/fs/nfs/client/ |
nfs_clvnops.c | 1768 struct componentname *tcnp = ap->a_tcnp; local in function:nfs_rename 1775 KASSERT((tcnp->cn_flags & HASBUF) != 0 && 1808 error = VOP_FSYNC(tvp, MNT_WAIT, tcnp->cn_thread); 1818 tvp->v_type != VDIR && !nfs_sillyrename(tdvp, tvp, tcnp)) { 1824 tdvp, tvp, tcnp->cn_nameptr, tcnp->cn_namelen, tcnp->cn_cred, 1825 tcnp->cn_thread); 1834 tdnp->n_fhp->nfh_len + tcnp->cn_namelen - 1, 1839 (fnp->n_v4->n4_namelen != tcnp->cn_namelen | [all...] |
/src/sys/fs/nilfs/ |
nilfs_vnops.c | 1291 struct componentname *tcnp = ap->a_tcnp; local in function:nilfs_rename 1359 nilfs_dir_detach(tdnode->ump, tdnode, tnode, tcnp); 1362 error = nilfs_dir_attach(tdnode->ump, tdnode, fnode, &fvap, tcnp); 1369 nilfs_dir_detach(tdnode->ump, tdnode, fnode, tcnp); 1376 VOP_ABORTOP(tdvp, tcnp);
|
/src/sys/rump/librump/rumpvfs/ |
rumpvnode_if.c | 417 struct componentname *tcnp) 422 error = VOP_RENAME(fdvp, fvp, fcnp, tdvp, tvp, tcnp);
|
/src/sys/ufs/chfs/ |
chfs_vnops.c | 1136 struct componentname *tcnp = ap->a_tcnp; local in function:chfs_rename 1163 newparent, tcnp->cn_nameptr, tcnp->cn_namelen); 1171 newparent, tcnp->cn_nameptr, tcnp->cn_namelen, ip->ch_type);
|
/src/sys/coda/ |
coda_vnops.c | 1229 struct componentname *tcnp = ap->a_tcnp; local in function:coda_rename 1236 const char *tnm = tcnp->cn_nameptr; 1237 int tlen = tcnp->cn_namelen; 1244 if ((fcnp->cn_cred != tcnp->cn_cred) 1245 || (fcnp->cn_lwp != tcnp->cn_lwp))
|
/src/sys/fs/unionfs/ |
unionfs_vnops.c | 1022 struct componentname *tcnp; local in function:unionfs_rename 1044 tcnp = ap->a_tcnp; 1159 error = unionfs_relookup_for_rename(tdvp, tcnp); 1166 error = VOP_RENAME(rfdvp, rfvp, fcnp, rtdvp, rtvp, tcnp);
|
/src/sys/nfs/ |
nfs_vnops.c | 1824 struct componentname *tcnp = ap->a_tcnp; local in function:nfs_rename 1844 tvp->v_type != VDIR && !nfs_sillyrename(tdvp, tvp, tcnp, true)) { 1851 tdvp, tcnp->cn_nameptr, tcnp->cn_namelen, tcnp->cn_cred, 1865 cache_purge1(tdvp, tcnp->cn_nameptr, tcnp->cn_namelen,
|
/src/sys/kern/ |
vnode_if.c | 1284 struct componentname *tcnp) 1296 a.a_tcnp = tcnp;
|