Home
last modified time | relevance | path

Searched refs:v_type (Results 1 – 25 of 130) sorted by relevance

123456

/freebsd/sys/fs/smbfs/
H A Dsmbfs_node.c152 if (((*vpp)->v_type == VDIR && in smbfs_node_alloc()
154 ((*vpp)->v_type == VREG && in smbfs_node_alloc()
194 vp->v_type = fap->fa_attr & SMB_FA_DIR ? VDIR : VREG; in smbfs_node_alloc()
211 } else if (vp->v_type == VREG) in smbfs_node_alloc()
308 if (vp->v_type == VREG) { in smbfs_inactive()
312 } else if (vp->v_type == VDIR) { in smbfs_inactive()
335 if (vp->v_type == VREG) { in smbfs_attr_cacheenter()
340 } else if (vp->v_type == VDIR) { in smbfs_attr_cacheenter()
360 va->va_type = vp->v_type; /* vnode type (for create) */ in smbfs_attr_cachelookup()
362 if (vp->v_type == VREG) { in smbfs_attr_cachelookup()
[all …]
H A Dsmbfs_vnops.c126 switch (vp->v_type) { in smbfs_access()
150 if (vp->v_type != VREG && vp->v_type != VDIR) { in smbfs_open()
154 if (vp->v_type == VDIR) { in smbfs_open()
306 switch (vp->v_type) { in smbfs_setattr()
467 if (vp->v_type != VREG && vp->v_type != VDIR) in smbfs_read()
480 if (vp->v_type != VREG) in smbfs_write()
587 if (fvp->v_type == VDIR) { in smbfs_rename()
623 if (fvp->v_type == VDIR) { in smbfs_rename()
753 if (vp->v_type != VDIR) in smbfs_readdir()
905 if (vp->v_type == VDIR) { in smbfs_advlock()
[all …]
/freebsd/usr.bin/tip/tip/
H A Dvalue.c59 if (p->v_type&ENVIRON) in vinit()
62 if (p->v_type&IREMOTE) { in vinit()
63 switch (p->v_type&TMASK) { in vinit()
120 switch (p->v_type&TMASK) { in vassign()
124 if (!(p->v_type&(ENVIRON|INIT))) in vassign()
130 p->v_type &= ~(ENVIRON|INIT); in vassign()
184 if (p->v_type&NUMBER) in vtoken()
221 switch (p->v_type&TMASK) { in vprint()
347 if (p->v_type&NUMBER) in vstring()
/freebsd/sys/fs/cd9660/
H A Dcd9660_vnops.c92 switch (vp->v_type) { in cd9660_setattr()
127 if (vp->v_type == VCHR || vp->v_type == VBLK) in cd9660_access()
136 switch (vp->v_type) { in cd9660_access()
148 file_mode &= (vp->v_type == VDIR) ? ip->i_mnt->im_dmask : ip->i_mnt->im_fmask; in cd9660_access()
155 return (vaccess(vp->v_type, file_mode, uid, in cd9660_access()
165 if (vp->v_type == VCHR || vp->v_type == VBLK) in cd9660_open()
224 vap->va_type = vp->v_type; in cd9660_getattr()
245 if (vp->v_type == VCHR || vp->v_type == VBLK) { in cd9660_ioctl()
283 if (vp->v_type == VCHR || vp->v_type == VBLK) in cd9660_read()
714 if (vp->v_type == VBLK || vp->v_type == VCHR) in cd9660_strategy()
[all …]
/freebsd/sys/ufs/ufs/
H A Dufs_gjournal.c73 if (devvp->v_type == VREG) { in ufs_gjournal_modref()
76 } else if (devvp->v_type == VCHR) { in ufs_gjournal_modref()
108 if ((vp->v_type == VDIR && ip->i_nlink > 2) || in ufs_gjournal_orphan()
109 (vp->v_type != VDIR && ip->i_nlink > 1)) { in ufs_gjournal_orphan()
H A Dufs_acl.c194 error = acl_nfs4_check(aclp, vp->v_type == VDIR); in ufs_getacl_nfs4_internal()
244 if (vp->v_type != VDIR) in ufs_get_oldacl()
380 KASSERT(acl_nfs4_check(aclp, vp->v_type == VDIR) == 0, in ufs_setacl_nfs4_internal()
511 if (ap->a_vp->v_type != VDIR) in ufs_setacl_posix1e()
627 if (ap->a_vp->v_type == VDIR) in ufs_aclcheck_nfs4()
650 if (ap->a_vp->v_type != VDIR) in ufs_aclcheck_posix1e()
H A Dufs_vnops.c159 if ((vp->v_type == VBLK || vp->v_type == VCHR) && !DOINGSOFTDEP(vp)) in ufs_itimes_locked()
300 (*vpp)->v_type = VNON; in ufs_mknod()
322 if (vp->v_type == VCHR || vp->v_type == VBLK) in ufs_open()
387 switch (vp->v_type) { in ufs_accessx()
457 error = vaccess(vp->v_type, ip->i_mode, in ufs_accessx()
728 switch (vp->v_type) { in ufs_setattr()
1466 (tvp != NULL && tvp->v_type == VDIR && in ufs_rename()
2613 if (vp->v_type == VFIFO) in ufs_print()
2660 if (ap->a_vp->v_type == VDIR || ap->a_vp->v_type == VFIFO) in ufs_pathconf()
2754 vp->v_type = IFTOVT(ip->i_mode); in ufs_vinit()
[all …]
/freebsd/sys/fs/nfsclient/
H A Dnfs_clnode.c158 if (vp->v_type == VNON) in ncl_nget()
159 vp->v_type = VDIR; in ncl_nget()
216 if (vp->v_type != VDIR) { in ncl_releasesillyrename()
244 if (NFS_ISV4(vp) && vp->v_type == VREG) { in ncl_inactive()
299 if (NFS_ISV4(vp) && vp->v_type == VREG) { in ncl_reclaim()
330 if (vp->v_type == VREG) in ncl_reclaim()
338 if (vp->v_type == VDIR) { in ncl_reclaim()
H A Dnfs_clbio.c144 if ((np->n_flag & NNONCACHE) && (vp->v_type == VREG)) { in ncl_getpages()
302 (np->n_flag & NNONCACHE) && (vp->v_type == VREG)) { in ncl_putpages()
376 if (vp->v_type != VREG) { in nfs_bioread_check_cons()
377 if (vp->v_type != VDIR) in nfs_bioread_check_cons()
401 if (vp->v_type == VDIR) in nfs_bioread_check_cons()
461 if (vp->v_type != VDIR && in ncl_bioread()
489 switch (vp->v_type) { in ncl_bioread()
738 if (vp->v_type == VLNK) in ncl_bioread()
850 if (vp->v_type != VREG) in ncl_write()
1314 if (vp->v_type == VREG) in nfs_getcacheblk()
[all …]
H A Dnfs_clvnops.c468 switch (vp->v_type) { in nfs_access()
587 if (vp->v_type == VREG) in nfs_access()
626 if (vp->v_type != VREG && vp->v_type != VDIR && vp->v_type != VLNK) in nfs_open()
663 if (vp->v_type == VDIR) in nfs_open()
1076 switch (vp->v_type) { in nfs_setattr()
1222 if (dvp->v_type != VDIR) in nfs_lookup()
1520 switch (vp->v_type) { in nfs_read()
1538 if (vp->v_type != VLNK) in nfs_readlink()
1869 if (vp->v_type == VDIR) in nfs_remove()
3449 switch (vp->v_type) { in nfsspec_access()
[all …]
/freebsd/sys/fs/ext2fs/
H A Dext2_vnops.c225 if ((vp->v_type == VBLK || vp->v_type == VCHR)) in ext2_itimes_locked()
279 if (ap->a_vp->v_type == VBLK || ap->a_vp->v_type == VCHR) in ext2_open()
325 switch (vp->v_type) { in ext2_access()
460 switch (vp->v_type) { in ext2_setattr()
1574 if (vp->v_type == VBLK || vp->v_type == VCHR) in ext2_strategy()
1655 if (ap->a_vp->v_type == VDIR || ap->a_vp->v_type == VFIFO) in ext2_pathconf()
1736 if (ap->a_vp->v_type == VCHR || ap->a_vp->v_type == VBLK) in ext2_deleteextattr()
1774 if (ap->a_vp->v_type == VCHR || ap->a_vp->v_type == VBLK) in ext2_getextattr()
1817 if (ap->a_vp->v_type == VCHR || ap->a_vp->v_type == VBLK) in ext2_listextattr()
1858 if (ap->a_vp->v_type == VCHR || ap->a_vp->v_type == VBLK) in ext2_setextattr()
[all …]
/freebsd/sys/fs/tarfs/
H A Dtarfs_vnops.c59 if (vp->v_type != VREG && vp->v_type != VDIR) in tarfs_open()
105 switch (vp->v_type) { in tarfs_access()
123 error = vaccess(vp->v_type, tnp->mode, tnp->uid, in tarfs_access()
196 vap->va_type = vp->v_type; in tarfs_getattr()
211 vap->va_rdev = (vp->v_type == VBLK || vp->v_type == VCHR) ? in tarfs_getattr()
326 if (vp->v_type != VDIR) in tarfs_readdir()
518 if (vp->v_type == VCHR || vp->v_type == VBLK) in tarfs_read()
521 if (vp->v_type != VREG) in tarfs_read()
560 MPASS(vp->v_type == VLNK); in tarfs_readlink()
607 if (vp->v_type == VFIFO) in tarfs_print()
/freebsd/sys/fs/devfs/
H A Ddevfs_vnops.c246 VNPASS(vp->v_type == VCHR || vp->v_type == VBAD, vp); in devfs_usecount_add()
270 VNPASS(vp->v_type == VCHR || vp->v_type == VBAD, vp); in devfs_usecount_subl()
415 if (vp->v_type != VCHR && vp->v_type != VDIR) { in devfs_vptocnp()
590 vp->v_type = VCHR; in devfs_allocv()
607 vp->v_type = VDIR; in devfs_allocv()
609 vp->v_type = VLNK; in devfs_allocv()
611 vp->v_type = VBAD; in devfs_allocv()
653 if (vp->v_type == VDIR) in devfs_access()
825 if (vp->v_type == VLNK) in devfs_getattr()
831 if (vp->v_type != VDIR) in devfs_getattr()
[all …]
/freebsd/sys/fs/tmpfs/
H A Dtmpfs_vnops.c416 switch (vp->v_type) { in tmpfs_access()
465 sb->st_rdev = (vp->v_type == VBLK || vp->v_type == VCHR) ? in tmpfs_stat()
523 vap->va_rdev = (vp->v_type == VBLK || vp->v_type == VCHR) ? in tmpfs_getattr()
606 if (vp->v_type != VREG) in tmpfs_read()
1432 if (vp->v_type != VDIR) in tmpfs_readdir()
1568 if (vp->v_type == VREG) in tmpfs_reclaim()
1645 if (vp->v_type == VDIR || vp->v_type == VFIFO) in tmpfs_pathconf()
1900 if (ap->a_vp->v_type == VCHR || ap->a_vp->v_type == VBLK) in tmpfs_deleteextattr()
1938 if (ap->a_vp->v_type == VCHR || ap->a_vp->v_type == VBLK) in tmpfs_getextattr()
1975 if (ap->a_vp->v_type == VCHR || ap->a_vp->v_type == VBLK) in tmpfs_listextattr()
[all …]
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dvnode_impl.h45 ((vp)->v_type == VCHR || (vp)->v_type == VBLK || (vp)->v_type == VFIFO)
/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_policy.c140 if (vp->v_type == VDIR) { in secpolicy_vnode_access()
193 if (vp->v_type == VDIR) in secpolicy_vnode_any_access()
197 if (vp->v_type != VDIR) in secpolicy_vnode_any_access()
227 if (vp->v_type == VDIR) in secpolicy_vnode_setattr()
351 if (vp->v_type != VDIR && (vap->va_mode & S_ISTXT)) { in secpolicy_setid_setsticky_clear()
/freebsd/sys/ufs/ffs/
H A Dffs_vnops.c249 if ((vp->v_type == VREG || vp->v_type == VDIR) && in ffs_fsync()
686 if (vp->v_type == VLNK) { in ffs_read()
689 } else if (vp->v_type != VREG && vp->v_type != VDIR) in ffs_read()
874 switch (vp->v_type) { in ffs_write()
1538 if (vp->v_type == VFIFO) in ffsext_strategy()
1556 if (ap->a_vp->v_type == VCHR || ap->a_vp->v_type == VBLK) in ffs_openextattr()
1578 if (vp->v_type == VCHR || vp->v_type == VBLK) in ffs_closeextattr()
1616 if (vp->v_type == VCHR || vp->v_type == VBLK) in ffs_deleteextattr()
1694 if (ap->a_vp->v_type == VCHR || ap->a_vp->v_type == VBLK) in ffs_getextattr()
1744 if (ap->a_vp->v_type == VCHR || ap->a_vp->v_type == VBLK) in ffs_listextattr()
[all …]
H A Dffs_inode.c329 vp->v_type, NULL, SINGLETON_KEY); in ffs_truncate()
335 if (vp->v_type == VLNK && ip->i_size < ump->um_maxsymlinklen) { in ffs_truncate()
466 if (vp->v_type == VDIR && ip->i_dirhash != NULL) in ffs_truncate()
496 if (vp->v_type == VDIR && ip->i_dirhash != NULL) in ffs_truncate()
500 if (vp->v_type != VDIR && offset != 0) in ffs_truncate()
586 vp->v_type, NULL, SINGLETON_KEY); in ffs_truncate()
607 vp->v_type, NULL, key); in ffs_truncate()
641 oldspace - newspace, ip->i_number, vp->v_type, in ffs_truncate()
787 ip->i_number, vp->v_type, NULL, key); in ffs_indirtrunc()
/freebsd/sys/fs/udf/
H A Dudf_vfsops.c681 vp->v_type = VBAD; in udf_vget()
684 vp->v_type = VDIR; in udf_vget()
687 vp->v_type = VREG; in udf_vget()
690 vp->v_type = VBLK; in udf_vget()
693 vp->v_type = VCHR; in udf_vget()
696 vp->v_type = VFIFO; in udf_vget()
700 vp->v_type = VSOCK; in udf_vget()
703 vp->v_type = VLNK; in udf_vget()
707 if (vp->v_type != VFIFO) in udf_vget()
/freebsd/sys/fs/fuse/
H A Dfuse_internal.h94 return (vp->v_type); in vnode_vtype()
106 return (vp->v_type == VREG); in vnode_isreg()
112 return (vp->v_type == VDIR); in vnode_isdir()
118 return (vp->v_type == VLNK); in vnode_islnk()
H A Dfuse_node.h186 if (dvp != NULL && vp->v_type == VDIR) { in fuse_vnode_setparent()
187 MPASS(dvp->v_type == VDIR); in fuse_vnode_setparent()
/freebsd/sys/kern/
H A Dvfs_vnops.c398 if (vp->v_type == VLNK) { in vn_open_vnode()
407 if (vp->v_type == VSOCK) in vn_open_vnode()
410 if (vp->v_type == VDIR) in vn_open_vnode()
440 if (vp->v_type != VFIFO && vp->v_type != VSOCK && in vn_open_vnode()
1156 if (vp->v_type == VREG) in vn_write()
1718 switch (vp->v_type) { in vn_ioctl()
2421 if (vp->v_type != VREG) in vn_rlimit_fsizex1()
3083 if (invp->v_type == VDIR || outvp->v_type == VDIR) in vn_copy_file_range()
3086 invp->v_type != VREG || outvp->v_type != VREG) in vn_copy_file_range()
3671 if (vp->v_type != VREG) in vn_fallocate()
[all …]
/freebsd/sys/fs/unionfs/
H A Dunion_vnops.c111 if (dvp->v_type != VDIR) in unionfs_lookup()
255 if (uvp != NULLVP && lvp != NULLVP && uvp->v_type != lvp->v_type) { in unionfs_lookup()
747 switch (ap->a_vp->v_type) { in unionfs_access()
768 switch (ap->a_vp->v_type) { in unionfs_access()
777 ap->a_vp->v_type == VDIR) { in unionfs_access()
840 if (ap->a_vp->v_type == VREG || ap->a_vp->v_type == VDIR) { in unionfs_getattr()
1121 if (ap->a_vp->v_type != VREG) in unionfs_link()
1251 if (fvp->v_type == VREG) { in unionfs_rename()
1283 switch (fvp->v_type) { in unionfs_rename()
1346 if (tvp->v_type == VDIR) { in unionfs_rename()
[all …]
/freebsd/sys/fs/pseudofs/
H A Dpseudofs_vnops.c166 error = vaccess(vn->v_type, vattr.va_mode, vattr.va_uid, vattr.va_gid, in pfs_access()
226 vap->va_type = vn->v_type; in pfs_getattr()
299 if (vn->v_type != VREG) { in pfs_ioctl()
386 if (vp->v_type == VDIR && pd->pn_type == pfstype_root) { in pfs_vptocnp()
391 } else if (vp->v_type == VDIR && pd->pn_type == pfstype_procdir) { in pfs_vptocnp()
461 if (vn->v_type != VDIR) in pfs_lookup()
683 if (vn->v_type != VREG) in pfs_read()
863 if (vn->v_type != VDIR) in pfs_readdir()
993 if (vn->v_type != VLNK) in pfs_readlink()
1089 if (vn->v_type != VREG) in pfs_write()
H A Dpseudofs_vncache.c180 (*vpp)->v_type = VDIR; in pfs_vncache_alloc()
183 (*vpp)->v_type = VREG; in pfs_vncache_alloc()
186 (*vpp)->v_type = VLNK; in pfs_vncache_alloc()

123456