Home
last modified time | relevance | path

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

12

/f-stack/freebsd/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dvnode_impl.h45 ((vp)->v_type == VCHR || (vp)->v_type == VBLK || (vp)->v_type == VFIFO)
H A Dvnode.h86 ((vp)->v_type == VDIR && (vp)->v_mountedhere != NULL)
/f-stack/freebsd/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_policy.c143 if (vp->v_type == VDIR) { in secpolicy_vnode_access()
196 if (vp->v_type == VDIR) in secpolicy_vnode_any_access()
200 if (vp->v_type != VDIR) in secpolicy_vnode_any_access()
230 if (vp->v_type == VDIR) in secpolicy_vnode_setattr()
354 if (vp->v_type != VDIR && (vap->va_mode & S_ISTXT)) { in secpolicy_setid_setsticky_clear()
H A Dspl_vfs.c146 if (error == 0 && vp->v_type != VDIR) in mount_snapshot()
/f-stack/freebsd/kern/
H A Dvfs_vnops.c300 if (vp->v_type == VDIR) { in vn_open_cred()
372 if (vp->v_type == VLNK) in vn_open_vnode()
374 if (vp->v_type == VSOCK) in vn_open_vnode()
380 if (vp->v_type == VDIR) in vn_open_vnode()
1061 if (vp->v_type == VREG) in vn_write()
1081 if (vp->v_type != VCHR && in vn_write()
1114 if (vp->v_type != VCHR) in vn_write()
1629 switch (vp->v_type) { in vn_ioctl()
2824 if (invp->v_type == VDIR || outvp->v_type == VDIR) in vn_copy_file_range()
2827 invp->v_type != VREG || outvp->v_type != VREG) in vn_copy_file_range()
[all …]
H A Dvfs_subr.c516 vp->v_type = VMARKER; in vn_alloc_marker()
569 vp->v_type = VNON; in vnode_init()
1128 if (vp->v_type == VBAD || vp->v_type == VNON) in vlrureclaim()
1145 if (__predict_false(vp->v_type == VBAD || vp->v_type == VNON)) { in vlrureclaim()
1254 if (__predict_false(vp->v_type == VBAD || vp->v_type == VNON)) { in vnlru_free_impl()
1778 vp->v_type = VNON; in getnewvnode()
3483 VNASSERT(vp->v_type == VBAD || vp->v_type == VNON, vp, in vdbatch_dequeue()
4063 vp->v_type = VBAD; in vgonel()
4094 switch (vp->v_type) { in vn_printf()
4980 vp->v_type = VNON; in vfs_allocate_syncvnode()
[all …]
H A Dvfs_lookup.c182 if ((ndp->ni_lcf & NI_LCF_CAP_DOTDOT) == 0 || dp->v_type != VDIR) in nameicap_tracker_add()
232 if (dp == NULL || dp->v_type != VDIR || (ndp->ni_lcf & in nameicap_check_dotdot()
403 if (error == 0 && (*dpp)->v_type != VDIR) in namei_setup()
548 MPASS(ndp->ni_startdir == NULL || ndp->ni_startdir->v_type == VDIR || in namei()
549 ndp->ni_startdir->v_type == VBAD); in namei()
918 if (dp->v_type != VDIR) { in lookup()
1127 while (dp->v_type == VDIR && (mp = dp->v_mountedhere) && in lookup()
1153 if ((dp->v_type == VLNK) && in lookup()
1222 if ((cnp->cn_flags & TRAILINGSLASH) && dp->v_type != VDIR) { in lookup()
1360 KASSERT(dp->v_type == VDIR, ("dp is not a directory")); in relookup()
[all …]
H A Dtty_tty.c79 else if (p->p_session->s_ttyvp->v_type == VBAD || in ctty_clone()
H A Dkern_acct.c236 if (nd.ni_vp->v_type != VREG) { in sys_acct()
582 if (acct_vp->v_type == VBAD) { in acctwatch()
H A Dvfs_cache.c2300 VNPASS(vp->v_type != VNON, vp); in cache_enter_time()
2856 if (dvp->v_type != VDIR) in vfs_cache_lookup()
3166 if (vp->v_type != VDIR) { in vn_fullpath_dir()
3376 if (vp->v_type != VDIR) { in vn_fullpath_any()
3445 type = vp->v_type; in vn_fullpath_hardlink()
4351 if (tvp->v_type == VLNK) { in cache_fplookup_final_modifying()
4696 if (tvp->v_type == VLNK) { in cache_fplookup_noentry()
5076 VNPASS(vp->v_type == VDIR || vp->v_type == VBAD, vp); in cache_fplookup_climb_mount()
5133 VNPASS(vp->v_type == VDIR || vp->v_type == VBAD, vp); in cache_fplookup_cross_mount()
5554 if (dvp->v_type != VDIR) { in cache_fplookup_failed_vexec()
[all …]
H A Dvfs_default.c299 KASSERT(vp->v_type == VDIR, ("vp %p is not a directory", vp)); in get_next_dirent()
360 KASSERT(vp->v_type == VDIR, ("vp %p is not a directory", vp)); in dirent_exists()
844 if (vp->v_type != VDIR) in vop_stdvptocnp()
885 if ((*dvp)->v_type != VDIR) { in vop_stdvptocnp()
1289 if (vp->v_type == VREG) in vop_stdioctl()
H A Dvfs_syscalls.c1013 if (vp->v_type != VDIR) in change_dir()
1184 KASSERT(vp->v_type != VFIFO, in kern_openat()
1575 if (vp->v_type == VDIR) { in kern_linkat_vp()
2665 if (vp->v_type == VCHR || vp->v_type == VBLK) { in setfflags()
3405 if (vp->v_type == VDIR) in kern_truncate()
3617 if (fromnd.ni_vp->v_type == VDIR) in kern_renameat()
3653 if (fvp->v_type == VDIR && tvp->v_type != VDIR) { in kern_renameat()
3656 } else if (fvp->v_type != VDIR && tvp->v_type == VDIR) { in kern_renameat()
3837 if (vp->v_type != VDIR) { in kern_frmdirat()
4118 if (vp->v_type != VDIR) { in kern_getdirentries()
[all …]
H A Duipc_mqueue.c803 (*vpp)->v_type = VDIR; in mqfs_allocv()
806 (*vpp)->v_type = VREG; in mqfs_allocv()
809 (*vpp)->v_type = VLNK; in mqfs_allocv()
869 if (dvp->v_type != VDIR) in mqfs_lookupx()
1072 if (ap->a_vp->v_type == VDIR) in mqfs_remove()
1180 error = vaccess(vp->v_type, vattr.va_mode, vattr.va_uid, vattr.va_gid, in mqfs_access()
1205 vap->va_type = vp->v_type; in mqfs_getattr()
1348 if (vp->v_type != VREG) in mqfs_read()
1398 if (vp->v_type != VDIR) in mqfs_readdir()
H A Dvfs_mountroot.c365 error = (vp->v_type == VDIR) ? 0 : ENOTDIR; in vfs_mountroot_shuffle()
390 error = (vp->v_type == VDIR) ? 0 : ENOTDIR; in vfs_mountroot_shuffle()
H A Dvfs_cluster.c665 if (vp->v_type == VREG) { in cluster_write()
758 if ((vp->v_type == VREG) && in cluster_write()
H A Dvfs_bio.c748 if (vp != NULL && vp->v_type != VCHR && in bufspace_wait()
2423 if (vp->v_type != VCHR && bp->b_lblkno == bp->b_blkno) { in bdwrite()
3196 if ((vp->v_type == VREG) && in vfs_bio_awrite()
3290 vp->v_type == VCHR) in getnewbuf()
5030 KASSERT(vp->v_type != VCHR && vp->v_type != VBLK, in bufstrategy()
H A Dvfs_aio.c1235 if (vp->v_type != VCHR) in aio_qbio()
1617 (fp->f_vnode == NULL || fp->f_vnode->v_type != VCHR)) { in aio_aqueue()
1792 if (vp->v_type == VREG || vp->v_type == VDIR) { in aio_queue_file()
/f-stack/freebsd/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_dir.c393 ASSERT((ZTOV(xzp)->v_type == VREG) || in zfs_purgedir()
394 (ZTOV(xzp)->v_type == VLNK)); in zfs_purgedir()
445 if (ZTOV(zp) != NULL && ZTOV(zp)->v_type == VDIR && in zfs_rmnode()
577 int zp_is_dir = (vp->v_type == VDIR); in zfs_link_create()
712 int zp_is_dir = (vp->v_type == VDIR); in zfs_link_destroy()
963 (ZTOV(zp)->v_type == VREG && in zfs_sticky_remove_access()
H A Dzfs_vnops_os.c235 ZTOV(zp)->v_type == VREG && in zfs_open()
266 ZTOV(zp)->v_type == VREG && in zfs_close()
796 if (dvp->v_type != VDIR) { in zfs_lookup()
1219 if (vp->v_type == VDIR) { in zfs_remove_()
1570 if (vp->v_type != VDIR) { in zfs_rmdir_()
1999 if (vp->v_type == VBLK || vp->v_type == VCHR) in zfs_getattr()
2036 if (vp->v_type == VBLK || vp->v_type == VCHR) in zfs_getattr()
2114 vp->v_type == VREG) { in zfs_getattr()
2250 if (mask & AT_SIZE && vp->v_type != VREG && vp->v_type != VFIFO) { in zfs_setattr()
2484 if ((vp->v_type != VREG && in zfs_setattr()
[all …]
H A Dzfs_ctldir.c399 vp->v_type = VDIR; in zfsctl_common_vnode_setup()
640 ASSERT(dvp->v_type == VDIR); in zfsctl_root_lookup()
674 ASSERT(vp->v_type == VDIR); in zfsctl_root_readdir()
856 ASSERT3S((*vpp)->v_type, ==, VDIR); in zfsctl_mounted_here()
919 ASSERT(dvp->v_type == VDIR); in zfsctl_snapdir_lookup()
1038 ASSERT(vp->v_type == VDIR); in zfsctl_snapdir_readdir()
H A Dzfs_acl.c829 VERIFY(zfs_copy_ace_2_fuid(zp->z_zfsvfs, ZTOV(zp)->v_type, aclp, in zfs_acl_xform()
1452 zfs_acl_chmod(ZTOV(zp)->v_type, mode, B_TRUE, in zfs_acl_chmod_setattr()
1950 error = zfs_vsec_2_aclp(zfsvfs, ZTOV(zp)->v_type, vsecp, cr, &fuidp, in zfs_setacl()
2132 if (ZTOV(zp)->v_type == VDIR && (iflags & ACE_INHERIT_ONLY_ACE)) in zfs_zaccess_aces_check()
2278 (ZTOV(zp)->v_type != VDIR) && in zfs_zaccess_common()
2318 (ZTOV(zdp)->v_type == VDIR)); in zfs_fastaccesschk_execute()
2347 is_attr = ((zp->z_pflags & ZFS_XATTR) && (ZTOV(zp)->v_type == VDIR)); in zfs_zaccess()
2663 add_perm = (ZTOV(szp)->v_type == VDIR) ? in zfs_zaccess_rename()
2674 if (ZTOV(szp)->v_type == VDIR && ZTOV(sdzp) != ZTOV(tdzp)) { in zfs_zaccess_rename()
H A Dzfs_znode.c494 vp->v_type = IFTOVT((mode_t)mode); in zfs_znode_alloc()
496 switch (vp->v_type) { in zfs_znode_alloc()
524 if (vp->v_type != VFIFO) in zfs_znode_alloc()
1152 if (vp->v_type != IFTOVT((mode_t)zp->z_mode)) { in zfs_rezget()
/f-stack/lib/include/sys/
H A Dvnode.h46 enum vtype v_type; member
/f-stack/freebsd/contrib/openzfs/include/os/freebsd/zfs/sys/
H A Dzfs_znode_impl.h111 #define ZTOTYPE(zp) (ZTOV(zp)->v_type)
/f-stack/freebsd/sys/
H A Dvnode.h108 enum vtype v_type:8; /* u vnode type */ member
597 if (vp && (vp->v_type == VREG || (vmiodirenable && vp->v_type == VDIR))) in vn_canvmio()

12