Home
last modified time | relevance | path

Searched refs:v_type (Results 1 – 25 of 128) 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()
133 mpmode = vp->v_type == VREG ? smp->sm_file_mode : smp->sm_dir_mode; in smbfs_access()
134 return (vaccess(vp->v_type, mpmode, smp->sm_uid, in smbfs_access()
150 if (vp->v_type != VREG && vp->v_type != VDIR) { in smbfs_open()
151 SMBFSERR("open eacces vtype=%d\n", vp->v_type); in smbfs_open()
154 if (vp->v_type == VDIR) { in smbfs_open()
216 if (vp->v_type == VDIR && (np->n_flag & NOPEN) != 0 && in smbfs_close()
306 switch (vp->v_type) { in smbfs_setattr()
375 if (vp->v_type == VREG) { in smbfs_setattr()
467 if (vp->v_type != VREG && vp->v_type != VDIR) in smbfs_read()
[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()
184 vap->va_mode &= (vp->v_type == VDIR) ? ip->i_mnt->im_dmask : ip->i_mnt->im_fmask; in cd9660_getattr()
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()
[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()
327 if (vp->v_type == VREG && (vn_irflag_read(vp) & VIRF_PGREAD) == 0 && in ufs_open()
387 switch (vp->v_type) { in ufs_accessx()
436 error = vaccess_acl_nfs4(vp->v_type, ip->i_uid, in ufs_accessx()
441 error = vaccess_acl_posix1e(vp->v_type, ip->i_uid, in ufs_accessx()
457 error = vaccess(vp->v_type, ip->i_mode, in ufs_accessx()
467 error = vaccess(vp->v_type, ip->i_mode, ip->i_uid, ip->i_gid, in ufs_accessx()
538 sb->st_mode = (ip->i_mode & ~IFMT) | VTTOIF(vp->v_type); in ufs_stat()
[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_lookup()
211 vap->va_rdev = (vp->v_type == VBLK || vp->v_type == VCHR) ? in tarfs_lookup()
326 if (vp->v_type != VDIR) in tarfs_readdir()
518 if (vp->v_type == VCHR || vp->v_type in tarfs_readlink()
[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()
468 if (newnfs_directio_enable && (ioflag & IO_DIRECT) && (vp->v_type == VREG)) in ncl_bioread()
489 switch (vp->v_type) { in ncl_bioread()
730 printf(" ncl_bioread: type %x unexpected\n", vp->v_type);
738 if (vp->v_type in nfs_directio_write()
[all...]
H A Dnfs_clvnops.c468 switch (vp->v_type) { in nfs_access()
490 if (vp->v_type != VDIR) { in nfs_access()
587 if (vp->v_type == VREG) in nfs_access()
589 else if (vp->v_type == VDIR) { in nfs_access()
597 } else if (vp->v_type == VLNK) 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()
687 if (vp->v_type == VDIR) in nfs_open()
712 (vp->v_type == VREG)) { in nfs_open()
842 if (vp->v_type == VREG) { in nfs_close()
[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()
341 error = vaccess(vp->v_type, ip->i_mode, ip->i_uid, ip->i_gid, in ext2_access()
460 switch (vp->v_type) { in ext2_setattr()
538 if (vp->v_type != VDIR && (mode & S_ISTXT)) { in ext2_chmod()
661 (*vpp)->v_type = VNON; in ext2_mknod()
1356 tvp->v_type = VDIR; /* Rest init'd in getnewvnode(). */ in ext2_mkdir()
1574 if (vp->v_type == VBLK || vp->v_type == VCHR) in ext2_strategy()
1612 if (vp->v_type == VFIFO) in ext2_print()
[all …]
/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()
311 VNPASS(vp->v_type == VCHR, vp); in devfs_usecountl()
322 VNPASS(vp->v_type == VCHR, vp); in devfs_usecount()
415 if (vp->v_type != VCHR && vp->v_type != VDIR) { in devfs_vptocnp()
421 if (vp->v_type == VDIR && dd == dmp->dm_rootdir) { 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()
[all …]
/freebsd/sys/fs/tmpfs/
H A Dtmpfs_vnops.c318 KASSERT(vp->v_type != VREG || (node->tn_reg.tn_aobj->flags & in tmpfs_open()
325 if (error == 0 && fp != NULL && vp->v_type == VREG) { in tmpfs_open()
396 return (vaccess(vp->v_type, node->tn_mode, node->tn_uid, node->tn_gid, in tmpfs_access_locked()
416 switch (vp->v_type) { in tmpfs_access()
461 sb->st_mode = node->tn_mode | VTTOIF(vp->v_type); in tmpfs_stat()
465 sb->st_rdev = (vp->v_type == VBLK || vp->v_type == VCHR) ? in tmpfs_stat()
479 if (vp->v_type == VREG) { in tmpfs_stat()
508 vap->va_type = vp->v_type; in tmpfs_getattr()
523 vap->va_rdev = (vp->v_type == VBLK || vp->v_type == VCHR) ? in tmpfs_getattr()
525 if (vp->v_type == VREG) { in tmpfs_getattr()
[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()
605 KASSERT(vp->v_type != VDIR || vp->v_vnlock->lk_recurse != 0 || in ffs_unlock_debug()
686 if (vp->v_type == VLNK) { in ffs_read()
689 } else if (vp->v_type != VREG && vp->v_type != VDIR) in ffs_read()
690 panic("ffs_read: type %d", vp->v_type); in ffs_read()
874 switch (vp->v_type) { in ffs_write()
887 panic("ffs_write: type %p %d (%d,%d)", vp, (int)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()
[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()
/freebsd/sys/fs/p9fs/
H A Dp9fs_vnops.c255 if (dvp->v_type != VDIR) in p9fs_lookup()
662 if (vp->v_type != VREG && vp->v_type != VDIR && vp->v_type != VLNK) in p9fs_open()
674 if (vp->v_type == VREG && (np->flags & P9FS_NODE_MODIFIED) != 0) { in p9fs_open()
816 error = vaccess(vp->v_type, vap.va_mode, vap.va_uid, vap.va_gid, accmode, in p9fs_access()
962 if (vp->v_type == VREG) in p9fs_stat_vnode_dotl()
975 vp->v_type = IFTOVT(inode->i_mode); in p9fs_stat_vnode_dotl()
1093 if (vp->v_type != VDIR && (mode & S_ISTXT)) { in p9fs_chmod()
1196 switch (vp->v_type) { in p9fs_setattr_dotl()
1241 if (vap->va_size != (uint64_t)VNOVAL && vp->v_type == VREG) { in p9fs_setattr_dotl()
1329 if (vp->v_type == VCHR || vp->v_type == VBLK) in p9fs_read()
[all …]
/freebsd/sys/kern/
H A Dvfs_vnops.c159 return (uio->uio_segflg == UIO_USERSPACE && vp->v_type == VREG && in do_vn_io_fault()
318 if (vp->v_type == VDIR) { in vn_open_cred()
398 if (vp->v_type == VLNK) { in vn_open_vnode()
402 if (vp->v_type != VDIR && fmode & O_DIRECTORY) 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()
446 if (vp->v_type == VFIFO && VOP_ISLOCKED(vp) != LK_EXCLUSIVE) in vn_open_vnode()
485 if ((vp->v_type == VFIFO || in vn_open_vnode()
530 lock_flags = vp->v_type != VFIFO && MNT_EXTENDED_SHARED(vp->v_mount) ? in vn_close1()
[all …]
H A Dvfs_subr.c595 vp->v_type = VMARKER; in vn_alloc_marker()
605 MPASS(vp->v_type == VMARKER); in vn_free_marker()
698 vp->v_type = VNON; in vnode_init()
1259 if (__predict_false(vp->v_type == VMARKER)) in vlrureclaim()
1272 if (vp->v_type == VBAD || vp->v_type == VNON) in vlrureclaim()
1289 if (__predict_false(vp->v_type == VBAD || vp->v_type == VNON)) { in vlrureclaim()
1334 MPASS(vp->v_type != VMARKER); in vlrureclaim()
1407 if (__predict_false(vp->v_type == VMARKER)) in vnlru_free_impl()
1421 if (__predict_false(vp->v_type == VBAD || vp->v_type == VNON)) { in vnlru_free_impl()
1501 VNPASS(mvp->v_type == VMARKER, mvp); in vnlru_free_vfsops()
[all …]
/freebsd/sys/fs/unionfs/
H A Dunion_vnops.c110 if (dvp->v_type != VDIR) in unionfs_lookup()
313 if (uvp != NULLVP && lvp != NULLVP && uvp->v_type != lvp->v_type) { in unionfs_lookup()
322 lerror == 0 && lvp != NULLVP && lvp->v_type == VDIR && in unionfs_lookup()
667 (ap->a_mode & FWRITE) && lvp->v_type == VREG) in unionfs_open()
672 if ((ap->a_mode & FWRITE) && lvp->v_type == VREG) { in unionfs_open()
686 if (targetvp == uvp && uvp->v_type == VDIR && lvp != NULLVP && in unionfs_open()
950 switch (ap->a_vp->v_type) { in unionfs_access()
971 switch (ap->a_vp->v_type) { in unionfs_access()
979 } else if (ap->a_vp->v_type == VREG || in unionfs_access()
980 ap->a_vp->v_type == VDIR) { in unionfs_access()
[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()

123456