/illumos-gate/usr/src/uts/common/syscall/ |
H A D | mknod.c | 81 vattr.va_type = IFTOVT(fmode); in mknodat() 84 if (vattr.va_type == VCHR || vattr.va_type == VBLK) { in mknodat()
|
H A D | mkdir.c | 59 vattr.va_type = VDIR; in mkdirat()
|
H A D | stat.c | 234 sb.st_mode = VTTOIF(vattr.va_type) | vattr.va_mode; in cstat() 357 sb.st_mode = VTTOIF(vattr.va_type) | vattr.va_mode; in cstat32() 465 lsb.st_mode = VTTOIF(vattr.va_type) | vattr.va_mode; in cstat64() 584 lsb.st_mode = VTTOIF(vattr.va_type) | vattr.va_mode; in cstat64_32()
|
H A D | symlink.c | 91 vattr.va_type = VLNK; in symlinkat()
|
H A D | readlink.c | 89 if (error || vattr.va_type != VLNK) { in readlinkat()
|
/illumos-gate/usr/src/uts/common/fs/bootfs/ |
H A D | bootfs_construct.c | 118 bnp->bvn_vnp->v_type = vap->va_type; in bootfs_node_init() 127 if (vap->va_type == VDIR) { in bootfs_node_init() 170 ASSERT(parent->bvn_attr.va_type == VDIR); in bootfs_mknode() 178 if (vap->va_type == VDIR) { in bootfs_mknode() 192 if (vap->va_type == VDIR) { in bootfs_mknode()
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs_srv.c | 154 va.va_type = VLNK; in rfs_getattr() 1853 va.va_type = VFIFO; /* xtra kludge for named pipe */ in rfs_create() 1855 va.va_type = VCHR; in rfs_create() 1868 va.va_type = VBLK; in rfs_create() 1880 va.va_type = VSOCK; in rfs_create() 1882 va.va_type = VREG; in rfs_create() 1904 if (!(va.va_mask & AT_SIZE) || va.va_type != VREG) { in rfs_create() 1923 } else if (va.va_type != VREG && va.va_type != VFIFO && in rfs_create() 1924 va.va_type != VSOCK && secpolicy_sys_devices(cr) != 0) { in rfs_create() 1937 if (!error && (va.va_type == VREG) && (va.va_mask & AT_SIZE)) { in rfs_create() [all …]
|
H A D | nfs3_xdr.c | 596 vap->va_type = IXDR_GET_ENUM(ptr, enum vtype); in xdr_fattr3_to_vattr() 597 if ((ftype3)vap->va_type < NF3REG || in xdr_fattr3_to_vattr() 598 (ftype3)vap->va_type > NF3FIFO) in xdr_fattr3_to_vattr() 599 vap->va_type = VBAD; in xdr_fattr3_to_vattr() 601 vap->va_type = nf3_to_vt[vap->va_type]; in xdr_fattr3_to_vattr() 676 if (!(xdr_enum(xdrs, (enum_t *)&vap->va_type) && in xdr_fattr3_to_vattr() 752 if ((ftype3)vap->va_type < NF3REG || in xdr_fattr3_to_vattr() 753 (ftype3)vap->va_type > NF3FIFO) in xdr_fattr3_to_vattr() 754 vap->va_type = VBAD; in xdr_fattr3_to_vattr() 756 vap->va_type = nf3_to_vt[vap->va_type]; in xdr_fattr3_to_vattr() [all …]
|
H A D | nfs4_xdr.c | 985 if (!XDR_GETINT32(xdrs, (int *)&vap->va_type)) in xdr_ga_fattr_res() 988 if ((nfs_ftype4)vap->va_type < NF4REG || in xdr_ga_fattr_res() 989 (nfs_ftype4)vap->va_type > NF4NAMEDATTR) in xdr_ga_fattr_res() 990 vap->va_type = VBAD; in xdr_ga_fattr_res() 992 vap->va_type = nf4_to_vt[vap->va_type]; in xdr_ga_fattr_res() 993 if (vap->va_type == VBLK) in xdr_ga_fattr_res() 1420 if (vap->va_type == VCHR || vap->va_type == VBLK) { in xdr_ga_fattr_res() 1454 if (vap->va_type == VREG || vap->va_type == VDIR || in xdr_ga_fattr_res() 1455 vap->va_type == VLNK) { in xdr_ga_fattr_res() 1655 vap->va_type = IXDR_GET_U_INT32(ptr); in xdr_ga_fattr_res_inline() [all …]
|
/illumos-gate/usr/src/uts/common/fs/tmpfs/ |
H A D | tmp_tnode.c | 169 t->tn_mode = MAKEIMODE(vap->va_type, vap->va_mode); in tmpnode_init() 171 t->tn_type = vap->va_type; in tmpnode_init() 199 vp->v_type = vap->va_type; in tmpnode_init()
|
H A D | tmp_vnops.c | 698 vap->va_type = vp->v_type; in tmp_getattr() 968 (vap->va_type == VBLK || vap->va_type == VCHR || in tmp_create() 969 vap->va_type == VFIFO || vap->va_type == VDOOR || in tmp_create() 970 vap->va_type == VSOCK || vap->va_type == VPORT)) in tmp_create() 973 if (vap->va_type == VREG && (vap->va_mode & VSVTX)) { in tmp_create() 977 } else if (vap->va_type == VNON) { in tmp_create()
|
/illumos-gate/usr/src/stand/lib/fs/nfs/ |
H A D | nfs2ops.c | 208 vap->va_type = VBAD; in nfsgetattr() 210 vap->va_type = nf_to_vt[na->type]; in nfsgetattr()
|
H A D | nfs3ops.c | 216 vap->va_type = VBAD; in nfs3getattr() 218 vap->va_type = nf3_to_vt[na->type]; in nfs3getattr()
|
/illumos-gate/usr/src/lib/smbclnt/libfksmbfs/common/ |
H A D | fake_stat.c | 77 lsb.st_mode = VTTOIF(vattr.va_type) | vattr.va_mode; in fake_stat()
|
/illumos-gate/usr/src/uts/common/fs/dev/ |
H A D | sdev_subr.c | 256 attrp->va_type = vap->va_type; in sdev_attr_update() 317 vp->v_type = vap->va_type; in sdev_nodeinit() 377 type = vap->va_type; in sdev_nodeready() 623 if (otype != nvap->va_type) { in sdev_node_check() 626 dv->sdev_name, otype, nvap->va_type)); in sdev_node_check() 1034 if (vattr.va_type == VLNK) { in sdev_rnmnode() 1220 vap->va_type = vp->v_type; in sdev_vattr_merge() 1232 if (vap->va_type == VCHR) in sdev_vattr_merge() 1374 if (vattr.va_type == VLNK) { in sdev_filldir_from_store() 1498 switch (vap->va_type) { in sdev_shadow_node() [all …]
|
H A D | sdev_zvolops.c | 618 vattr.va_type = VNON; in devzvol_mk_ngz_node() 654 vattr.va_type = VDIR; in devzvol_mk_ngz_node() 672 vattr.va_type = VCHR; in devzvol_mk_ngz_node() 674 vattr.va_type = VBLK; in devzvol_mk_ngz_node()
|
/illumos-gate/usr/src/uts/common/fs/objfs/ |
H A D | objfs_odir.c | 69 vap->va_type = VDIR; in objfs_odir_getattr()
|
/illumos-gate/usr/src/uts/common/sys/fs/ |
H A D | tmpnode.h | 107 #define tn_type tn_attr.va_type
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zfs_znode.c | 516 vattr.va_type = VDIR; in zfs_create_share_dir() 853 if (vap->va_type == VDIR) { in zfs_mknode() 898 if (vap->va_type == VDIR) { in zfs_mknode() 905 if (vap->va_type == VBLK || vap->va_type == VCHR) { in zfs_mknode() 914 if (vap->va_type == VREG || vap->va_type == VDIR) { in zfs_mknode() 1018 (vap->va_type == VBLK || vap->va_type == VCHR)) { in zfs_mknode() 1915 vattr.va_type = VDIR; in zfs_create_fs()
|
/illumos-gate/usr/src/uts/common/fs/udfs/ |
H A D | udf_alloc.c | 1056 imode = MAKEIMODE(vap->va_type, vap->va_mode); in ud_ialloc() 1110 if ((vap->va_type == VBLK) || (vap->va_type == VCHR)) { in ud_ialloc() 1132 switch (vap->va_type) { in ud_ialloc() 1161 if ((pip->i_char & ISGID) && (vap->va_type == VDIR)) { in ud_ialloc() 1187 if (vap->va_type == VDIR) { in ud_ialloc()
|
/illumos-gate/usr/src/uts/common/fs/ctfs/ |
H A D | ctfs_event.c | 274 vap->va_type = VREG; in ctfs_ev_getattr() 433 vap->va_type = VREG; in ctfs_bu_getattr()
|
H A D | ctfs_sym.c | 91 vap->va_type = VLNK; in ctfs_sym_getattr()
|
H A D | ctfs_latest.c | 161 vap->va_type = VREG; in ctfs_latest_getattr()
|
H A D | ctfs_all.c | 82 vap->va_type = VDIR; in ctfs_adir_getattr()
|
/illumos-gate/usr/src/uts/common/fs/sockfs/ |
H A D | sockcommon_vnops.c | 312 vap->va_type = VCHR; in socket_vop_getattr() 315 vap->va_type = vp->v_type; in socket_vop_getattr()
|