| /netbsd-src/sys/miscfs/genfs/ |
| H A D | genfs_rename.c | 194 KASSERT(fdvp->v_type == VDIR); in genfs_insane_rename() 195 KASSERT(tdvp->v_type == VDIR); in genfs_insane_rename() 260 KASSERT(fdvp->v_type == VDIR); in genfs_sane_rename() 261 KASSERT(tdvp->v_type == VDIR); in genfs_sane_rename() 303 if (fvp->v_type == VDIR) in genfs_sane_rename() 337 if (fvp->v_type == VDIR && tvp->v_type == VDIR) in genfs_sane_rename() 341 else if (fvp->v_type == VDIR && tvp->v_type != VDIR) in genfs_sane_rename() 343 else if (fvp->v_type != VDIR && tvp->v_type == VDIR) in genfs_sane_rename() 349 KASSERT((fvp->v_type == VDIR) == (tvp->v_type == VDIR)); in genfs_sane_rename() 410 directory_p = (fvp->v_type == VDIR); in genfs_rename_knote() [all …]
|
| /netbsd-src/sys/miscfs/procfs/ |
| H A D | procfs_vfsops.c | 329 vp->v_type = VDIR; in procfs_loadvnode() 336 vp->v_type = VDIR; in procfs_loadvnode() 346 vp->v_type = VLNK; in procfs_loadvnode() 352 vp->v_type = VDIR; in procfs_loadvnode() 380 if (vxp->v_type == VDIR || in procfs_loadvnode() 383 vp->v_type = vxp->v_type; in procfs_loadvnode() 386 vp->v_type = VFIFO; in procfs_loadvnode() 389 vp->v_type = VSOCK; in procfs_loadvnode() 397 vp->v_type in procfs_loadvnode() [all...] |
| /netbsd-src/sys/miscfs/specfs/ |
| H A D | spec_vnops.c | 193 return ((vp->v_type == VCHR) && iskmemdev(vp->v_rdev)); in iskmemvp() 381 KASSERT(vp->v_type == VBLK || vp->v_type == VCHR); in spec_node_init() 396 if (rdev == vp2->v_rdev && vp->v_type == vp2->v_type) { in spec_node_init() 443 if (type == vp->v_type && dev == vp->v_rdev) { in spec_node_lookup_by_dev() 502 if (vp->v_type != VBLK) in spec_node_lookup_by_mount() 539 KASSERT(devvp->v_type == VBLK); in spec_node_getmountedfs() 573 KASSERT(devvp->v_type == VBLK); in spec_node_setmountedfs() 610 KASSERT(vp->v_type in spec_node_revoke() [all...] |
| /netbsd-src/sys/ufs/lfs/ |
| H A D | ulfs_readwrite.c | 81 KASSERT(vp->v_type == VREG || vp->v_type == VDIR); in READ() 84 if (vp->v_type == VDIR) in READ() 87 if (vp->v_type == VREG && ip->i_number == LFS_IFILE_INUM) in READ() 98 KASSERT(vp->v_type == VREG); in READ() 133 KASSERT(vp->v_type == VDIR || vp->v_type == VLNK || in BUFRD() 134 vp->v_type == VREG); in BUFRD() 141 KASSERT(vp->v_type != VLNK || ip->i_size >= fs->um_maxsymlinklen); in BUFRD() 142 KASSERT(vp->v_type != VLNK || fs->um_maxsymlinklen != 0 || in BUFRD() 144 KASSERT(vp->v_type != VREG || vp == fs->lfs_ivnode); in BUFRD() 145 KASSERT(vp->v_type != VREG || ip->i_number == LFS_IFILE_INUM); in BUFRD() [all …]
|
| H A D | lfs_rename.c | 169 KASSERT(fdvp->v_type == VDIR); in ulfs_gro_rename_check_possible() 170 KASSERT(tdvp->v_type == VDIR); in ulfs_gro_rename_check_possible() 207 KASSERT(fdvp->v_type == VDIR); in ulfs_gro_rename_check_permitted() 208 KASSERT(tdvp->v_type == VDIR); in ulfs_gro_rename_check_permitted() 239 KASSERT(dvp->v_type == VDIR); in ulfs_gro_remove_check_possible() 240 KASSERT(vp->v_type != VDIR); in ulfs_gro_remove_check_possible() 265 KASSERT(dvp->v_type == VDIR); in ulfs_gro_remove_check_permitted() 266 KASSERT(vp->v_type != VDIR); in ulfs_gro_remove_check_permitted() 494 KASSERT(dvp->v_type == VDIR); in ulfs_gro_remove() 495 KASSERT(vp->v_type != VDIR); in ulfs_gro_remove() [all …]
|
| /netbsd-src/sys/fs/tmpfs/ |
| H A D | tmpfs_rename.c | 149 KASSERT(fdvp->v_type == VDIR); in tmpfs_gro_rename_check_possible() 150 KASSERT(tdvp->v_type == VDIR); in tmpfs_gro_rename_check_possible() 187 KASSERT(fdvp->v_type == VDIR); in tmpfs_gro_rename_check_permitted() 188 KASSERT(tdvp->v_type == VDIR); in tmpfs_gro_rename_check_permitted() 221 KASSERT(dvp->v_type == VDIR); in tmpfs_gro_remove_check_possible() 222 KASSERT(vp->v_type != VDIR); in tmpfs_gro_remove_check_possible() 247 KASSERT(dvp->v_type == VDIR); in tmpfs_gro_remove_check_permitted() 248 KASSERT(vp->v_type != VDIR); in tmpfs_gro_remove_check_permitted() 332 KASSERT((fvp->v_type == VDIR) == (tvp->v_type == VDIR)); in tmpfs_gro_rename() 333 if (tvp->v_type == VDIR) { in tmpfs_gro_rename() [all …]
|
| H A D | tmpfs_vnops.c | 394 switch (vp->v_type) { in tmpfs_access() 415 vp->v_type, node->tn_mode), vp, NULL, genfs_can_access(vp, cred, in tmpfs_access() 433 vap->va_type = vp->v_type; in tmpfs_getattr() 444 vap->va_rdev = (vp->v_type == VBLK || vp->v_type == VCHR) ? in tmpfs_getattr() 528 if (vp->v_type == VDIR) { in tmpfs_read() 531 if (uio->uio_offset < 0 || vp->v_type != VREG) { in tmpfs_read() 591 if (uio->uio_offset < 0 || vp->v_type != VREG) { in tmpfs_write() 703 if (vp->v_type == VDIR) { in tmpfs_remove() 785 KASSERT(vp->v_type != VDIR); in tmpfs_link() 988 if (vp->v_type != VDIR) { in tmpfs_readdir() [all …]
|
| /netbsd-src/sys/kern/ |
| H A D | vfs_vnops.c | 309 if (vp->v_type == VSOCK) { in vn_open() 313 if (nd.ni_vp->v_type == VLNK) { in vn_open() 392 if (vp->v_type == VNON || vp->v_type == VBAD) in vn_openchk() 395 if ((fflags & O_DIRECTORY) != 0 && vp->v_type != VDIR) in vn_openchk() 398 if ((fflags & O_REGULAR) != 0 && vp->v_type != VREG) in vn_openchk() 409 if (vp->v_type == VDIR) { in vn_openchk() 502 if (uio->uio_rw != UIO_WRITE || vp->v_type != VREG) in enforce_rlimit_fsize() 589 if (vp->v_type != VDIR) in vn_readdir() 667 if (__predict_false(vp->v_type in vn_read() [all...] |
| /netbsd-src/sys/fs/udf/ |
| H A D | udf_rename.c | 173 KASSERT(fdvp->v_type == VDIR); in udf_gro_rename_check_possible() 174 KASSERT(tdvp->v_type == VDIR); in udf_gro_rename_check_possible() 218 KASSERT(fdvp->v_type == VDIR); in udf_gro_rename_check_permitted() 219 KASSERT(tdvp->v_type == VDIR); in udf_gro_rename_check_permitted() 264 KASSERT(dvp->v_type == VDIR); in udf_gro_remove_check_possible() 265 KASSERT(vp->v_type != VDIR); in udf_gro_remove_check_possible() 297 KASSERT(dvp->v_type == VDIR); in udf_gro_remove_check_permitted() 298 KASSERT(vp->v_type != VDIR); in udf_gro_remove_check_permitted() 386 if ((fdnode != tdnode) && (fvp->v_type == VDIR)) { in udf_gro_rename() 424 KASSERT(dvp->v_type == VDIR); in udf_gro_remove() [all …]
|
| /netbsd-src/sys/ufs/ext2fs/ |
| H A D | ext2fs_readwrite.c | 117 KASSERT(vp->v_type == VREG || vp->v_type == VDIR); in ext2fs_read() 120 if (vp->v_type == VDIR) in ext2fs_read() 130 KASSERT(vp->v_type == VREG); in ext2fs_read() 166 KASSERT(vp->v_type == VDIR || vp->v_type == VLNK); in ext2fs_bufrd() 173 KASSERT(vp->v_type != VLNK || in ext2fs_bufrd() 175 KASSERT(vp->v_type != VLNK || ump->um_maxsymlinklen != 0 || in ext2fs_bufrd() 287 KASSERT(vp->v_type == VREG); in ext2fs_write() 306 KASSERT(vp->v_type in ext2fs_write() [all...] |
| H A D | ext2fs_rename.c | 159 KASSERT(fdvp->v_type == VDIR); in ext2fs_gro_rename_check_possible() 160 KASSERT(tdvp->v_type == VDIR); in ext2fs_gro_rename_check_possible() 197 KASSERT(fdvp->v_type == VDIR); in ext2fs_gro_rename_check_permitted() 198 KASSERT(tdvp->v_type == VDIR); in ext2fs_gro_rename_check_permitted() 229 KASSERT(dvp->v_type == VDIR); in ext2fs_gro_remove_check_possible() 230 KASSERT(vp->v_type != VDIR); in ext2fs_gro_remove_check_possible() 255 KASSERT(dvp->v_type == VDIR); in ext2fs_gro_remove_check_permitted() 256 KASSERT(vp->v_type != VDIR); in ext2fs_gro_remove_check_permitted() 313 directory_p = (fvp->v_type == VDIR); in ext2fs_gro_rename() 315 KASSERT((tvp == NULL) || (directory_p == (tvp->v_type == VDIR))); in ext2fs_gro_rename() [all …]
|
| /netbsd-src/sys/miscfs/fdesc/ |
| H A D | fdesc_vfsops.c | 193 vp->v_type = VDIR; in fdesc_loadvnode() 198 vp->v_type = VDIR; in fdesc_loadvnode() 202 vp->v_type = VCHR; in fdesc_loadvnode() 207 vp->v_type = VLNK; in fdesc_loadvnode() 212 vp->v_type = VLNK; in fdesc_loadvnode() 217 vp->v_type = VLNK; in fdesc_loadvnode() 223 vp->v_type = VNON; in fdesc_loadvnode()
|
| /netbsd-src/usr.bin/tip/ |
| H A D | value.c | 64 if (p->v_type&ENVIRON) in vinit() 67 if (p->v_type&IREMOTE) in vinit() 101 switch (p->v_type&TMASK) { in vassign() 106 if (!(p->v_type&(ENVIRON|INIT))) in vassign() 112 p->v_type &= ~(ENVIRON|INIT); in vassign() 170 if (p->v_type&NUMBER) in vtoken() 207 switch (p->v_type&TMASK) { in vprint() 336 if (p->v_type&NUMBER) in vstring()
|
| /netbsd-src/sys/ufs/ufs/ |
| H A D | ufs_readwrite.c | 85 KASSERT(vp->v_type == VREG || vp->v_type == VDIR); in READ() 88 if (vp->v_type == VDIR) in READ() 101 KASSERT(vp->v_type == VREG); in READ() 137 KASSERT(vp->v_type == VDIR || vp->v_type == VLNK); in BUFRD() 145 KASSERT(vp->v_type != VLNK || ip->i_size >= ump->um_maxsymlinklen); in BUFRD() 146 KASSERT(vp->v_type != VLNK || ump->um_maxsymlinklen != 0 || in BUFRD() 264 KASSERT(vp->v_type == VREG); in WRITE() 287 KASSERT(vp->v_type in WRITE() [all...] |
| H A D | ufs_rename.c | 160 KASSERT(fdvp->v_type == VDIR); in ufs_gro_rename_check_possible() 161 KASSERT(tdvp->v_type == VDIR); in ufs_gro_rename_check_possible() 198 KASSERT(fdvp->v_type == VDIR); in ufs_gro_rename_check_permitted() 199 KASSERT(tdvp->v_type == VDIR); in ufs_gro_rename_check_permitted() 230 KASSERT(dvp->v_type == VDIR); in ufs_gro_remove_check_possible() 231 KASSERT(vp->v_type != VDIR); in ufs_gro_remove_check_possible() 256 KASSERT(dvp->v_type == VDIR); in ufs_gro_remove_check_permitted() 257 KASSERT(vp->v_type != VDIR); in ufs_gro_remove_check_permitted() 323 directory_p = (fvp->v_type == VDIR); in ufs_gro_rename() 325 KASSERT((tvp == NULL) || (directory_p == (tvp->v_type == VDIR))); in ufs_gro_rename() [all …]
|
| /netbsd-src/sys/fs/nfs/client/ |
| H A D | nfs_clnode.c | 158 if (vp->v_type == VNON) in ncl_nget() 159 vp->v_type = VDIR; in ncl_nget() 212 if (vp->v_type != VDIR) { in ncl_releasesillyrename() 237 if (NFS_ISV4(vp) && vp->v_type == VREG) { in ncl_inactive() 297 if (NFS_ISV4(vp) && vp->v_type == VREG) in ncl_reclaim() 312 if (vp->v_type == VREG) in ncl_reclaim() 320 if (vp->v_type == VDIR) { in ncl_reclaim()
|
| /netbsd-src/sys/fs/msdosfs/ |
| H A D | msdosfs_rename.c | 126 KASSERT(fdvp->v_type == VDIR); in msdosfs_rename() 127 KASSERT(tdvp->v_type == VDIR); in msdosfs_rename() 236 if (vp->v_type == VDIR) in msdosfs_vnode_mode() 420 directory_p = (fvp->v_type == VDIR); in msdosfs_gro_rename() 423 KASSERT((tvp == NULL) || (directory_p == (tvp->v_type == VDIR))); in msdosfs_gro_rename() 559 KASSERT(dvp->v_type == VDIR); in msdosfs_gro_remove() 560 KASSERT(vp->v_type != VDIR); in msdosfs_gro_remove() 625 KASSERT(vp->v_type == VDIR); in msdosfs_rmdired_p() 651 KASSERT(fdvp->v_type == VDIR); in msdosfs_gro_genealogy() 652 KASSERT(tdvp->v_type == VDIR); in msdosfs_gro_genealogy() [all …]
|
| /netbsd-src/sys/fs/nilfs/ |
| H A D | nilfs_vnops.c | 157 if (vp->v_type == VDIR) in nilfs_read() 160 if (vp->v_type != VREG) in nilfs_read() 228 if (vp->v_type == VDIR) in nilfs_write() 231 if (vp->v_type != VREG) in nilfs_write() 492 if (vp->v_type == VBLK || vp->v_type == VCHR) in nilfs_vfsstrategy() 533 if (vp->v_type != VDIR) in nilfs_readdir() 733 vnodetp = (*vpp)->v_type; in nilfs_lookup() 791 vap->va_type = vp->v_type; in nilfs_getattr() 1032 vp->v_type, vap->va_mode), vp, NULL, genfs_can_access(vp, cred, in nilfs_check_permitted() 1147 KASSERT(vp->v_type != VDIR); in nilfs_do_link() [all …]
|
| /netbsd-src/sys/fs/cd9660/ |
| H A D | cd9660_vnops.c | 98 switch (vp->v_type) { in cd9660_check_possible() 125 file_mode &= (vp->v_type == VDIR) ? ip->i_mnt->im_dmask : ip->i_mnt->im_fmask; in cd9660_check_permitted() 133 vp->v_type, file_mode), vp, NULL, in cd9660_check_permitted() 175 vap->va_mode &= (vp->v_type == VDIR) ? ip->i_mnt->im_dmask : ip->i_mnt->im_fmask; in cd9660_getattr() 187 if (ip->i_size == 0 && vp->v_type == VLNK) { in cd9660_getattr() 213 vap->va_type = vp->v_type; in cd9660_getattr() 248 if (vp->v_type == VREG) { in cd9660_read() 410 if (vdp->v_type != VDIR) in cd9660_readdir() 697 if (vp->v_type == VBLK || vp->v_type == VCHR) in cd9660_strategy() 810 && vp->v_type != VCHR in cd9660_setattr() [all …]
|
| /netbsd-src/sys/ufs/ffs/ |
| H A D | ffs_extattr.c | 571 if (vp->v_type == VFIFO) in ffsext_strategy() 594 if (ap->a_vp->v_type == VCHR || ap->a_vp->v_type == VBLK) in ffs_openextattr() 620 if (ap->a_vp->v_type == VCHR || ap->a_vp->v_type == VBLK) in ffs_closeextattr() 663 if (ap->a_vp->v_type == VCHR || ap->a_vp->v_type == VBLK) in ffs_getextattr() 728 if (ap->a_vp->v_type == VCHR || ap->a_vp->v_type == VBLK) in ffs_setextattr() 850 if (ap->a_vp->v_type == VCHR || ap->a_vp->v_type == VBLK) in ffs_listextattr() 918 if (ap->a_vp->v_type == VCHR || ap->a_vp->v_type == VBLK) in ffs_deleteextattr()
|
| /netbsd-src/sys/fs/adosfs/ |
| H A D | advnops.c | 156 vap->va_type = sp->a_vp->v_type; in adosfs_getattr() 158 if (sp->a_vp->v_type == VDIR) { in adosfs_getattr() 218 if (sp->a_vp->v_type != VREG) { in adosfs_read() 240 if (vp->v_type == VREG && IS_FFS(amp)) { in adosfs_read() 427 if (sp->a_vp->v_type != VREG) { in adosfs_bmap() 556 if (sp->a_vp->v_type != VDIR) { in adosfs_readdir() 650 switch (ATOV(ap)->v_type) { in adosfs_readdir() 712 switch (vp->v_type) { in adosfs_check_possible() 732 vp->v_type, file_mode), vp, NULL, genfs_can_access(vp, in adosfs_check_permitted() 834 if (vp->v_type == VDIR && ap->tab) in adosfs_reclaim() [all …]
|
| /netbsd-src/sys/nfs/ |
| H A D | nfs_node.c | 128 vp->v_type = VNON; in nfs_loadvnode() 193 if (vp->v_type != VDIR) { in nfs_inactive() 204 if (vp->v_type == VDIR && np->n_dircache) in nfs_inactive() 234 if (vp->v_type == VDIR && np->n_dircache != NULL) { in nfs_reclaim() 250 if (vp->v_type == VREG) { in nfs_reclaim()
|
| /netbsd-src/sys/fs/puffs/ |
| H A D | puffs_node.c | 95 if (vp->v_type != VNON && ! may_exist) { in puffs_getvnode1() 106 if (vp->v_type != VNON) { in puffs_getvnode1() 114 vp->v_type = type; in puffs_getvnode1() 120 } else if (vp->v_type == VREG) { in puffs_getvnode1() 265 if ((*vpp)->v_type == VNON) { in puffs_cookie2vnode()
|
| /netbsd-src/sys/fs/efs/ |
| H A D | efs_vfsops.c | 213 if (devvp->v_type != VBLK) { in efs_mount() 403 vp->v_type = VFIFO; in efs_loadvnode() 407 vp->v_type = VCHR; in efs_loadvnode() 412 vp->v_type = VDIR; in efs_loadvnode() 418 vp->v_type = VBLK; in efs_loadvnode() 423 vp->v_type = VREG; in efs_loadvnode() 427 vp->v_type = VLNK; in efs_loadvnode() 431 vp->v_type = VSOCK; in efs_loadvnode()
|
| /netbsd-src/sys/fs/sysvbfs/ |
| H A D | sysvbfs_vnops.c | 191 KDASSERT(v->v_type == VREG || v->v_type == VDIR); in sysvbfs_open() 257 vp->v_type, attr->mode), vp, NULL, genfs_can_access(vp, cred, in sysvbfs_check_permitted() 301 vap->va_type = vp->v_type; in sysvbfs_getattr() 370 switch (vp->v_type) { in sysvbfs_setattr() 435 DPRINTF("%s: type=%d\n", __func__, v->v_type); in sysvbfs_read() 436 switch (v->v_type) { in sysvbfs_read() 480 if (a->a_vp->v_type != VREG) in sysvbfs_write() 526 if (vp->v_type == VDIR) { in sysvbfs_remove() 575 KDASSERT(fvp->v_type == VREG); in sysvbfs_rename() 576 KDASSERT(tvp == NULL ? true : tvp->v_type == VREG); in sysvbfs_rename() [all …]
|