| /openbsd/src/sys/kern/ |
| D | vfs_vnops.c | 144 if (vp->v_type == VSOCK) { in vn_open() 148 if (vp->v_type == VLNK) { in vn_open() 152 if ((fmode & O_DIRECTORY) && vp->v_type != VDIR) { in vn_open() 162 if (vp->v_type == VDIR) { in vn_open() 171 if ((fmode & O_TRUNC) && vp->v_type == VREG) { in vn_open() 214 switch (vp->v_type) { in vn_writechk() 252 if (vp->v_type == VREG && p != NULL && !(ioflag & IO_NOLIMIT)) { in vn_fsizechk() 359 if (vp->v_type != VCHR && count > LLONG_MAX - offset) { in vn_read() 364 if (vp->v_type == VDIR) { in vn_read() 396 if (vp->v_type == VREG && (fp->f_flag & O_APPEND) && in vn_write() [all …]
|
| D | vfs_subr.c | 463 if (vp->v_type != VBAD) in getnewvnode() 479 vp->v_type = VNON; in getnewvnode() 550 vp->v_type = type; in getdevvp() 555 if (vp->v_type == VCHR && cdevsw[major(vp->v_rdev)].d_type == D_TTY) in getdevvp() 576 if (nvp->v_type != VBLK && nvp->v_type != VCHR) in checkalias() 582 if (nvp_rdev != vp->v_rdev || nvp->v_type != vp->v_type) { in checkalias() 601 if (vp == NULL || !(vp->v_tag == VT_NON && vp->v_type == VBLK)) { in checkalias() 609 if (nvp->v_type == VCHR && in checkalias() 642 nvp->v_type = VNON; in checkalias() 715 if (vp->v_type == VNON) in vref() [all …]
|
| D | vfs_default.c | 69 while (vp->v_type == VBLK && vp->v_specinfo != NULL && in vop_generic_revoke() 108 vq->v_type != vp->v_type || vp == vq) in vop_generic_revoke()
|
| D | kern_pledge.c | 763 if (vp->v_type != VDIR) in pledge_recvfd() 791 if (vp->v_type != VDIR) in pledge_sendfd() 1076 if (vp->v_type == VBAD) in pledge_ioctl() 1096 vp->v_type == VCHR && in pledge_ioctl() 1110 vp->v_type == VCHR) { in pledge_ioctl() 1123 (vp->v_type == VCHR) && in pledge_ioctl() 1145 vp->v_type == VCHR && in pledge_ioctl() 1163 ((vp->v_type == VCHR && in pledge_ioctl() 1165 (vp->v_type == VBLK && in pledge_ioctl() 1171 vp->v_type == VCHR && in pledge_ioctl() [all …]
|
| D | spec_vnops.c | 117 switch (vp->v_type) { in spec_open() 211 switch (vp->v_type) { in spec_read() 298 switch (vp->v_type) { in spec_write() 359 switch (ap->a_vp->v_type) { in spec_ioctl() 383 switch (ap->a_vp->v_type) { in spec_kqfilter() 407 if (vp->v_type == VCHR) in spec_fsync() 469 switch (vp->v_type) { in spec_close()
|
| D | vfs_lookup.c | 230 if (fp->f_type != DTYPE_VNODE || dp->v_type != VDIR) { in namei() 426 if (dp->v_type != VDIR) { in vfs_lookup() 639 while (dp->v_type == VDIR && (mp = dp->v_mountedhere) && in vfs_lookup() 658 if ((dp->v_type == VLNK) && (cnp->cn_flags & (FOLLOW|REQUIREDIR))) { in vfs_lookup() 669 if ((dp->v_type != VDIR) && (cnp->cn_flags & REQUIREDIR)) { in vfs_lookup() 818 if (dp->v_type == VLNK && (cnp->cn_flags & FOLLOW)) in vfs_relookup()
|
| D | kern_acct.c | 124 if (nd.ni_vp->v_type != VREG) { in sys_acct() 317 if (savacctp->v_type == VBAD) { in acct_thread() 329 if (acctp->v_type == VBAD) { in acct_thread()
|
| D | vfs_cache.c | 114 ncp->nc_vp->v_type == VDIR && in cache_zap() 392 if (vp != dvp && vp->v_type == VDIR && in cache_enter() 436 KASSERT(vp->v_type == VDIR || TAILQ_EMPTY(&vp->v_cache_dst)); in cache_purge()
|
| /openbsd/src/sys/tmpfs/ |
| D | tmpfs_vnops.c | 416 switch (vp->v_type) { in tmpfs_access() 436 return (vaccess(vp->v_type, node->tn_mode, node->tn_uid, node->tn_gid, in tmpfs_access() 454 vap->va_type = vp->v_type; in tmpfs_getattr() 469 vap->va_rdev = (vp->v_type == VBLK || vp->v_type == VCHR) ? in tmpfs_getattr() 544 if (vp->v_type != VREG) { in tmpfs_read() 598 if (vp->v_type != VREG) in tmpfs_write() 697 if (vp->v_type == VDIR) { in tmpfs_remove() 966 if (vp->v_type != VDIR) { in tmpfs_readdir() 1000 KASSERT(vp->v_type == VLNK); in tmpfs_readlink() 1026 if (vp->v_type == VREG && tmpfs_uio_cached(node)) in tmpfs_inactive() [all …]
|
| /openbsd/src/sys/ufs/ffs/ |
| D | ffs_vnops.c | 204 if (vp->v_type == VLNK) { in ffs_read() 207 } else if (vp->v_type != VREG && vp->v_type != VDIR) in ffs_read() 208 panic("ffs_read: type %d", vp->v_type); in ffs_read() 304 switch (vp->v_type) { in ffs_write() 318 panic("ffs_write: type %d", vp->v_type); in ffs_write() 499 if (vp->v_type != VBLK) in ffs_fsync()
|
| D | ffs_inode.c | 144 if (ovp->v_type != VREG && in ffs_truncate() 145 ovp->v_type != VDIR && in ffs_truncate() 146 ovp->v_type != VLNK) in ffs_truncate() 152 if (ovp->v_type == VLNK && in ffs_truncate() 224 if (ovp->v_type != VDIR) in ffs_truncate()
|
| /openbsd/src/sys/ufs/ufs/ |
| D | ufs_vnops.c | 112 if ((vp->v_type == VBLK || vp->v_type == VCHR)) in ufs_itimes() 186 (*vpp)->v_type = VNON; in ufs_mknod() 246 switch (vp->v_type) { in ufs_access() 274 if ((mode & VEXEC) && vp->v_type != VDIR && in ufs_access() 280 return (vaccess(vp->v_type, DIP(ip, mode), DIP(ip, uid), DIP(ip, gid), in ufs_access() 314 if (vp->v_type == VBLK) in ufs_getattr() 316 else if (vp->v_type == VCHR) in ufs_getattr() 321 vap->va_type = vp->v_type; in ufs_getattr() 392 switch (vp->v_type) { in ufs_setattr() 466 if (vp->v_type != VDIR && (mode & S_ISTXT)) in ufs_chmod() [all …]
|
| /openbsd/src/sys/isofs/udf/ |
| D | udf_vfsops.c | 159 if (devvp->v_type != VBLK) { in udf_mount() 649 printf("Unrecognized file type (%d)\n", vp->v_type); in udf_vget() 650 vp->v_type = VREG; in udf_vget() 653 vp->v_type = VDIR; in udf_vget() 656 vp->v_type = VBLK; in udf_vget() 659 vp->v_type = VCHR; in udf_vget() 662 vp->v_type = VFIFO; in udf_vget() 665 vp->v_type = VSOCK; in udf_vget() 668 vp->v_type = VLNK; in udf_vget() 673 vp->v_type = VREG; in udf_vget()
|
| /openbsd/src/sys/ufs/ext2fs/ |
| D | ext2fs_readwrite.c | 96 if (vp->v_type == VLNK) { in ext2_ind_read() 99 } else if (vp->v_type != VREG && vp->v_type != VDIR) in ext2_ind_read() 100 panic("%s: type %d", "ext2fs_read", vp->v_type); in ext2_ind_read() 266 switch (vp->v_type) { in ext2fs_write()
|
| D | ext2fs_vnops.c | 119 (*vpp)->v_type = VNON; in ext2fs_mknod() 156 return (vaccess(vp->v_type, ip->i_e2fs_mode, ip->i_e2fs_uid, in ext2fs_access() 195 if (vp->v_type == VBLK) in ext2fs_getattr() 197 else if (vp->v_type == VCHR) in ext2fs_getattr() 202 vap->va_type = vp->v_type; in ext2fs_getattr() 275 switch (vp->v_type) { in ext2fs_setattr() 339 if (vp->v_type != VDIR && (mode & S_ISTXT)) in ext2fs_chmod() 401 if (vp->v_type == VDIR || in ext2fs_remove() 541 if (fvp->v_type == VDIR) { in ext2fs_rename() 904 tvp->v_type = VDIR; /* Rest init'd in getnewvnode(). */ in ext2fs_mkdir() [all …]
|
| D | ext2fs_subr.c | 125 vp->v_type = IFTOVT(ip->i_e2fs_mode); in ext2fs_vinit() 127 switch(vp->v_type) { in ext2fs_vinit()
|
| D | ext2fs_inode.c | 224 if (ovp->v_type != VREG && in ext2fs_truncate() 225 ovp->v_type != VDIR && in ext2fs_truncate() 226 ovp->v_type != VLNK) in ext2fs_truncate() 229 if (ovp->v_type == VLNK && ext2fs_size(oip) < EXT2_MAXSYMLINKLEN) { in ext2fs_truncate()
|
| /openbsd/src/sys/miscfs/fuse/ |
| D | fuse_lookup.c | 144 tdp->v_type = nvtype; in fusefs_lookup() 164 tdp->v_type = nvtype; in fusefs_lookup() 184 tdp->v_type = nvtype; in fusefs_lookup()
|
| D | fuse_vnops.c | 256 if (vp->v_type == VDIR) in fusefs_open() 314 if (ap->a_vp->v_type == VDIR) in fusefs_close() 379 switch (ap->a_vp->v_type) { in fusefs_access() 392 return (vaccess(ap->a_vp->v_type, vattr.va_mode & ALLPERMS, in fusefs_access() 532 switch (vp->v_type) { in fusefs_setattr() 581 if (cred->cr_uid != 0 && vp->v_type != VDIR && in fusefs_setattr() 736 tdp->v_type = VLNK; in fusefs_symlink() 892 (vp->v_type == VDIR), p); in fusefs_inactive() 963 (vp->v_type == VDIR), ap->a_p); in fusefs_reclaim() 1054 tdp->v_type = IFTOVT(fbuf->fb_io_mode); in fusefs_create() [all …]
|
| /openbsd/src/sys/uvm/ |
| D | uvm_mmap.c | 304 if (vp->v_type != VREG && vp->v_type != VCHR && in sys_mmap() 305 vp->v_type != VBLK) { in sys_mmap() 310 if (vp->v_type == VREG && (pos + size) < pos) { in sys_mmap() 316 if (vp->v_type == VCHR && iszerodev(vp->v_rdev)) { in sys_mmap() 332 vp->v_type == VCHR ? "MAP_SHARED" : "MAP_PRIVATE", in sys_mmap() 335 if (vp->v_type == VCHR) in sys_mmap() 346 if (vp->v_type == VCHR && (flags & MAP_PRIVATE) != 0) { in sys_mmap() 1066 if (vp->v_type != VCHR) { in uvm_mmapfile() 1118 return vp->v_type == VREG ? ENOMEM : EINVAL; in uvm_mmapfile()
|
| D | uvm_swap.c | 739 if (vp->v_type != VBLK) { in sys_swapctl() 769 if (vp->v_type == VREG && in sys_swapctl() 787 sdp->swd_dev = (vp->v_type == VBLK) ? vp->v_rdev : NODEV; in sys_swapctl() 792 if (vp->v_type == VREG) { in sys_swapctl() 800 if (vp->v_type == VREG) { in sys_swapctl() 826 if (vp->v_type == VREG) { in sys_swapctl() 928 switch (vp->v_type) { in swap_on() 978 if (vp->v_type == VBLK) { in swap_on() 1010 if (dev == swdevt[0] && vp->v_type == VBLK && size > 3 ) { in swap_on() 1089 if (sdp->swd_vp->v_type == VREG) { in swap_off() [all …]
|
| /openbsd/src/sys/nfs/ |
| D | nfs_bio.c | 130 if ((vp->v_flag & VROOT) && vp->v_type == VLNK) { in nfs_bioread() 134 switch (vp->v_type) { in nfs_bioread() 218 panic("nfsbioread: type %x unexpected", vp->v_type); in nfs_bioread() 228 if (vp->v_type == VLNK) in nfs_bioread() 264 if (vp->v_type != VREG) in nfs_write() 575 switch (vp->v_type) { in nfs_doio() 617 panic("nfs_doio: type %x unexpected", vp->v_type); in nfs_doio()
|
| D | nfs_vnops.c | 298 switch (vp->v_type) { in nfs_access() 341 if (vp->v_type == VDIR) { in nfs_access() 424 if (vp->v_type != VREG && vp->v_type != VDIR && vp->v_type != VLNK) { in nfs_open() 426 printf("open eacces vtyp=%d\n",vp->v_type); in nfs_open() 457 if (vp->v_type == VDIR) in nfs_open() 468 if (vp->v_type == VDIR) in nfs_open() 517 if (vp->v_type == VREG) { in nfs_close() 623 switch (vp->v_type) { in nfs_setattr() 659 vp->v_type == VREG && in nfs_setattr() 742 sp->sa_mode = vtonfsv2_mode(vp->v_type, vap->va_mode); in nfs_setattrrpc() [all …]
|
| /openbsd/src/lib/libkvm/ |
| D | kvm_file2.c | 523 kf->v_type = vp->v_type; in fill_file() 732 _kvm_getftype(enum vtype v_type) in _kvm_getftype() argument 736 switch (v_type) { in _kvm_getftype() 842 kf->va_mode = (mp.pm_mask & 0777) | _kvm_getftype(vp->v_type); in msdos_filestat() 864 kf->va_mode = (mode_t)nfsnode.n_vattr.va_mode | _kvm_getftype(vp->v_type); in nfs_filestat() 901 if (vp->v_type != VNON && vp->v_type != VBAD) { in filestat()
|
| /openbsd/src/sys/ufs/mfs/ |
| D | mfs_vnops.c | 100 if (ap->a_vp->v_type != VBLK) { in mfs_open() 128 if (vp->v_type != VBLK || vp->v_usecount == 0) in mfs_strategy()
|