| /openbsd/src/regress/sys/kern/pledge/sendrecvfd/ |
| D | Makefile | 5 vnodetype= VREG VDIR VBLK VCHR VLNK VSOCK VFIFO 8 test-nopledge-VDIR \ 29 FAIL_TARGETS= test-sendfd-VDIR \ 30 test-recvfd-VDIR \ 33 test-nosendfd-VDIR \ 41 test-norecvfd-VDIR \
|
| /openbsd/src/sys/tmpfs/ |
| D | tmpfs_vnops.c | 172 KASSERT(dnode->tn_type == VDIR); in tmpfs_lookup() 243 if (!lastcn && tnode->tn_type != VDIR && tnode->tn_type != VLNK) { in tmpfs_lookup() 417 case VDIR: in tmpfs_access() 697 if (vp->v_type == VDIR) { in tmpfs_remove() 831 KASSERT(vap->va_type == VDIR); in tmpfs_mkdir() 966 if (vp->v_type != VDIR) { in tmpfs_readdir() 1292 KASSERT(fdvp->v_type == VDIR); in tmpfs_rename() 1293 KASSERT(tdvp->v_type == VDIR); in tmpfs_rename() 1394 KASSERT(fdvp->v_type == VDIR); in tmpfs_sane_rename() 1395 KASSERT(tdvp->v_type == VDIR); in tmpfs_sane_rename() [all …]
|
| D | tmpfs_subr.c | 156 case VDIR: in tmpfs_alloc_node() 247 case VDIR: in tmpfs_free_node() 334 case VDIR: in tmpfs_vnode_get() 381 if (vap->va_type == VDIR) { in tmpfs_alloc_file() 506 if (node->tn_type == VDIR) { in tmpfs_dir_attach() 550 if (node->tn_type == VDIR) { in tmpfs_dir_detach() 626 return (node->tn_type != VDIR && node->tn_links > 1) ? NULL : de; in tmpfs_dir_cached() 799 case VDIR: in tmpfs_dir_getdents() 997 if (vp->v_type != VDIR && (mode & S_ISTXT)) in tmpfs_chmod() 1066 case VDIR: in tmpfs_chsize()
|
| D | tmpfs_vfsops.c | 168 error = tmpfs_alloc_node(tmp, VDIR, args->ta_root_uid, in tmpfs_mount() 233 if (node->tn_type != VDIR) { in tmpfs_unmount()
|
| D | tmpfs.h | 333 KASSERT((node)->tn_type == VDIR); \
|
| /openbsd/src/sys/kern/ |
| D | vfs_vnops.c | 152 if ((fmode & O_DIRECTORY) && vp->v_type != VDIR) { in vn_open() 162 if (vp->v_type == VDIR) { in vn_open() 216 case VDIR: in vn_writechk() 364 if (vp->v_type == VDIR) { in vn_read() 463 case VDIR: in vn_stat() 517 case VDIR: in vn_ioctl()
|
| 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()
|
| 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() 669 if ((dp->v_type != VDIR) && (cnp->cn_flags & REQUIREDIR)) { in vfs_lookup()
|
| D | vfs_syscalls.c | 185 if (vp->v_type != VDIR) { in sys_mount() 737 if (fp->f_type != DTYPE_VNODE || vp->v_type != VDIR) { in sys_fchdir() 842 if (vp->v_type != VDIR) in change_dir() 1171 else if (vp->v_type == VDIR) in doopenat() 1389 if ((flags & O_DIRECTORY) && vp->v_type != VDIR) { in sys_fhopen() 1398 if (vp->v_type == VDIR) { in sys_fhopen() 1714 if (vp->v_type == VDIR) { in dolinkat() 1856 if (vp->v_type != VDIR) { in dounlinkat() 2838 if (vp->v_type == VDIR) in dotruncate() 2987 if (fvp->v_type == VDIR) in dorenameat() [all …]
|
| D | kern_unveil.c | 434 directory_add = ndp->ni_vp != NULL && ndp->ni_vp->v_type == VDIR; in unveil_add() 441 KASSERT(vp->v_type == VDIR); in unveil_add() 680 if (ni->ni_vp != NULL && ni->ni_vp->v_type == VDIR) { in unveil_check_final()
|
| /openbsd/src/sys/miscfs/fuse/ |
| D | fuse_vnops.c | 256 if (vp->v_type == VDIR) in fusefs_open() 314 if (ap->a_vp->v_type == VDIR) in fusefs_close() 381 case VDIR: in fusefs_access() 533 case VDIR: in fusefs_setattr() 581 if (cred->cr_uid != 0 && vp->v_type != VDIR && in fusefs_setattr() 892 (vp->v_type == VDIR), p); in fusefs_inactive() 963 (vp->v_type == VDIR), ap->a_p); in fusefs_reclaim() 1316 if (fvp->v_type == VDIR) { in fusefs_rename() 1610 if (vp->v_type == VDIR) in fusefs_fsync()
|
| /openbsd/src/lib/libkvm/ |
| D | kvm_udf.c | 100 if (vp->v_type & VDIR) { in _kvm_stat_udf()
|
| /openbsd/src/sys/nfs/ |
| D | nfs_vnops.c | 300 case VDIR: 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() 457 if (vp->v_type == VDIR) in nfs_open() 468 if (vp->v_type == VDIR) in nfs_open() 624 case VDIR: in nfs_setattr() 827 if (dvp->v_type != VDIR) in nfs_lookup() 1677 if (vp->v_type == VDIR) in nfs_remove() 1804 tvp->v_type != VDIR && !nfs_sillyrename(tdvp, tvp, tcnp)) { in nfs_rename() 1817 if (fvp->v_type == VDIR) { in nfs_rename() [all …]
|
| D | nfs_serv.c | 184 if (vp->v_type == VDIR) in nfsrv3_access() 192 if (vp->v_type == VDIR) in nfsrv3_access() 388 if (vp->v_type == VDIR) { in nfsrv_setattr() 693 error = (vp->v_type == VDIR) ? EISDIR : EACCES; in nfsrv_read() 915 error = (vp->v_type == VDIR) ? EISDIR : EACCES; in nfsrv_write() 1550 if (vp->v_type == VDIR && in nfsrv_remove() 1705 if (fvp->v_type == VDIR && tvp->v_type != VDIR) { in nfsrv_rename() 1708 } else if (fvp->v_type != VDIR && tvp->v_type == VDIR) { in nfsrv_rename() 1712 if (tvp->v_type == VDIR && tvp->v_mountedhere) { in nfsrv_rename() 1717 if (fvp->v_type == VDIR && fvp->v_mountedhere) { in nfsrv_rename() [all …]
|
| D | nfs_node.c | 178 if (ap->a_vp->v_type != VDIR) { in nfs_inactive()
|
| /openbsd/src/regress/usr.bin/diff/ |
| D | t9.1 | 163 if (vp->v_type != VDIR) { 607 if (vp->v_type != VDIR) 699 if (vp->v_type != VDIR) 922 if (vp->v_type != VDIR || 1055 if (vp->v_type != VDIR || 1610 if (vp->v_type == VDIR) 1648 if (vp->v_type == VDIR) 1718 if (fvp->v_type == VDIR && tvp->v_type != VDIR) { 1721 } else if (fvp->v_type != VDIR && tvp->v_type == VDIR) { 1802 vattr.va_type = VDIR; [all …]
|
| D | t9.2 | 196 if (vp->v_type != VDIR) { 733 if (vp->v_type != VDIR) 835 if (vp->v_type != VDIR) 930 else if (vp->v_type == VDIR) 1057 if (vp->v_type == VDIR) { 1340 if (vp->v_type == VDIR) { 2207 if (vp->v_type == VDIR) 2248 if (vp->v_type == VDIR) 2319 if (fvp->v_type == VDIR) 2333 if (fvp->v_type == VDIR && tvp->v_type != VDIR) { [all …]
|
| /openbsd/src/sys/ufs/ext2fs/ |
| D | ext2fs_readwrite.c | 99 } else if (vp->v_type != VREG && vp->v_type != VDIR) in ext2_ind_read() 276 case VDIR: in ext2fs_write()
|
| D | ext2fs_vnops.c | 276 case VDIR: 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()
|
| /openbsd/src/sys/ufs/ufs/ |
| D | ufs_vnops.c | 248 case VDIR: in ufs_access() 274 if ((mode & VEXEC) && vp->v_type != VDIR && in ufs_access() 393 case VDIR: in ufs_setattr() 466 if (vp->v_type != VDIR && (mode & S_ISTXT)) in ufs_chmod() 589 if (vp->v_type == VDIR || (DIP(ip, flags) & (IMMUTABLE | APPEND)) || in ufs_remove() 735 if (fvp->v_type == VDIR) { in ufs_rename() 1131 tvp->v_type = VDIR; /* Rest init'd in getnewvnode(). */ in ufs_mkdir()
|
| /openbsd/src/sys/ufs/ffs/ |
| D | ffs_vnops.c | 207 } else if (vp->v_type != VREG && vp->v_type != VDIR) in ffs_read() 313 case VDIR: in ffs_write()
|
| D | ffs_inode.c | 145 ovp->v_type != VDIR && in ffs_truncate() 224 if (ovp->v_type != VDIR) in ffs_truncate()
|
| D | ffs_subr.c | 266 case VDIR: in ffs_vinit()
|
| /openbsd/src/sys/isofs/udf/ |
| D | udf_vnops.c | 227 case VDIR: in udf_access() 352 if (vp->v_type & VDIR) { in udf_getattr() 366 if ((vp->v_type & VDIR) && xfentry->logblks_rec != 0) in udf_getattr() 372 if ((vp->v_type & VDIR) && fentry->logblks_rec != 0) in udf_getattr()
|
| /openbsd/src/sys/msdosfs/ |
| D | msdosfs_vnops.c | 413 case VDIR: in msdosfs_setattr() 450 if (vp->v_type != VDIR) { in msdosfs_setattr() 479 if (vp->v_type != VDIR) { in msdosfs_setattr() 600 case VDIR: in msdosfs_write() 801 if (ap->a_vp->v_type == VDIR) in msdosfs_remove()
|