/illumos-gate/usr/src/cmd/drd/ |
H A D | drd_log.c | 96 drd_log_msg(int prio, char *fmt, va_list vap) argument 104 (void) vsnprintf(msgbuf, DRD_MAX_MSG_LEN, fmt, vap); 120 va_list vap; local 122 va_start(vap, fmt); 123 drd_log_msg(LOG_ERR, fmt, vap); 124 va_end(vap); 130 va_list vap; local 132 va_start(vap, fmt); 133 drd_log_msg(LOG_INFO, fmt, vap); 134 va_end(vap); 140 va_list vap; local [all...] |
/illumos-gate/usr/src/cmd/ldmad/ |
H A D | ldma_log.c | 96 ldma_log_msg(int prio, char *module, char *fmt, va_list vap) argument 105 (void) vsnprintf(msgbuf, LDMA_MAX_MSG_LEN, fmt, vap); 124 va_list vap; local 126 va_start(vap, fmt); 127 ldma_log_msg(LOG_ERR, module, fmt, vap); 128 va_end(vap); 134 va_list vap; local 136 va_start(vap, fmt); 137 ldma_log_msg(LOG_INFO, module, fmt, vap); 138 va_end(vap); 144 va_list vap; local [all...] |
/illumos-gate/usr/src/uts/common/fs/objfs/ |
H A D | objfs_common.c | 77 objfs_common_getattr(vnode_t *vp, vattr_t *vap) argument 79 vap->va_uid = 0; 80 vap->va_gid = 0; 81 vap->va_rdev = 0; 82 vap->va_blksize = DEV_BSIZE; 83 vap->va_nblocks = howmany(vap->va_size, vap->va_blksize); 84 vap->va_seq = 0; 85 vap [all...] |
H A D | objfs_odir.c | 66 objfs_odir_getattr(vnode_t *vp, vattr_t *vap, int flags, cred_t *cr, argument 71 vap->va_type = VDIR; 72 vap->va_mode = S_IRUSR | S_IXUSR | S_IRGRP | S_IXGRP | 74 vap->va_nodeid = gfs_file_inode(vp); 75 vap->va_nlink = vap->va_size = 2; 77 vap->va_atime = vap->va_ctime = vap->va_mtime = now; 78 return (objfs_common_getattr(vp, vap)); [all...] |
H A D | objfs_root.c | 58 objfs_root_getattr(vnode_t *vp, vattr_t *vap, int flags, cred_t *cr, argument 61 vap->va_type = VDIR; 62 vap->va_mode = 0555; 63 vap->va_nodeid = gfs_file_inode(vp); 64 vap->va_nlink = objfs_nobjs() + 2; 65 vap->va_size = vap->va_nlink; 66 vap->va_atime.tv_sec = vp->v_vfsp->vfs_mtime; 67 vap->va_atime.tv_nsec = 0; 68 vap [all...] |
/illumos-gate/usr/src/uts/common/fs/ctfs/ |
H A D | ctfs_latest.c | 150 vattr_t *vap, 158 int res = VOP_GETATTR(nvp, vap, flags, cr, ct); 163 vap->va_type = VREG; 164 vap->va_mode = 0444; 165 vap->va_nlink = 1; 166 vap->va_size = 0; 167 vap->va_ctime.tv_sec = vp->v_vfsp->vfs_mtime; 168 vap->va_ctime.tv_nsec = 0; 169 vap->va_atime = vap 148 ctfs_latest_getattr( vnode_t *vp, vattr_t *vap, int flags, cred_t *cr, caller_context_t *ct) argument [all...] |
H A D | ctfs_sym.c | 86 vattr_t *vap, 93 vap->va_type = VLNK; 94 vap->va_mode = 0444; 95 vap->va_nlink = 1; 96 vap->va_size = symnode->ctfs_sn_size - 1; 97 vap->va_mtime = vap->va_atime = vap->va_ctime = 99 ctfs_common_getattr(vp, vap); 84 ctfs_sym_getattr( vnode_t *vp, vattr_t *vap, int flags, cred_t *cr, caller_context_t *ct) argument
|
H A D | ctfs_tdir.c | 83 vattr_t *vap, 88 vap->va_type = VDIR; 89 vap->va_mode = 0555; 90 vap->va_nlink = 2 + CTFS_NSPECIALS; 91 vap->va_size = vap->va_nlink + 93 vap->va_ctime.tv_sec = vp->v_vfsp->vfs_mtime; 94 vap->va_ctime.tv_nsec = 0; 95 contract_type_time(ct_types[gfs_file_index(vp)], &vap->va_atime); 96 vap 81 ctfs_tdir_getattr( vnode_t *vp, vattr_t *vap, int flags, cred_t *cr, caller_context_t *ct) argument [all...] |
H A D | ctfs_root.c | 375 * points. It assumes vap->va_size is set. 378 ctfs_common_getattr(vnode_t *vp, vattr_t *vap) argument 380 vap->va_uid = 0; 381 vap->va_gid = 0; 382 vap->va_rdev = 0; 383 vap->va_blksize = DEV_BSIZE; 384 vap->va_nblocks = howmany(vap->va_size, vap->va_blksize); 385 vap 484 ctfs_root_getattr( vnode_t *vp, vattr_t *vap, int flags, cred_t *cr, caller_context_t *ct) argument [all...] |
H A D | ctfs_all.c | 77 vattr_t *vap, 84 vap->va_type = VDIR; 85 vap->va_mode = 0555; 88 vap->va_nlink = 2; 89 vap->va_size = 2 + total; 90 vap->va_ctime.tv_sec = vp->v_vfsp->vfs_mtime; 91 vap->va_ctime.tv_nsec = 0; 92 vap->va_mtime = vap->va_atime = vap 75 ctfs_adir_getattr( vnode_t *vp, vattr_t *vap, int flags, cred_t *cr, caller_context_t *ct) argument [all...] |
H A D | ctfs_tmpl.c | 92 vattr_t *vap, 97 vap->va_type = VREG; 98 vap->va_mode = 0666; 99 vap->va_nlink = 1; 100 vap->va_size = 0; 101 vap->va_ctime.tv_sec = vp->v_vfsp->vfs_mtime; 102 vap->va_ctime.tv_nsec = 0; 103 vap->va_atime = vap->va_mtime = vap 90 ctfs_tmpl_getattr( vnode_t *vp, vattr_t *vap, int flags, cred_t *cr, caller_context_t *ct) argument [all...] |
H A D | ctfs_cdir.c | 100 vattr_t *vap, 107 vap->va_type = VDIR; 108 vap->va_mode = 0555; 109 vap->va_nlink = 2 + CTFS_NCTLS; 110 vap->va_size = vap->va_nlink; 111 vap->va_ctime = cdirnode->ctfs_cn_contract->ct_ctime; 113 vap->va_atime = vap->va_mtime = 116 ctfs_common_getattr(vp, vap); 98 ctfs_cdir_getattr( vnode_t *vp, vattr_t *vap, int flags, cred_t *cr, caller_context_t *ct) argument [all...] |
H A D | ctfs_event.c | 268 vattr_t *vap, 275 vap->va_type = VREG; 276 vap->va_mode = 0444; 277 vap->va_nlink = 1; 278 vap->va_size = 0; 279 vap->va_ctime = evnode->ctfs_ev_contract->ct_ctime; 281 vap->va_atime = vap->va_mtime = 284 ctfs_common_getattr(vp, vap); 427 vattr_t *vap, 266 ctfs_ev_getattr( vnode_t *vp, vattr_t *vap, int flags, cred_t *cr, caller_context_t *ct) argument 425 ctfs_bu_getattr( vnode_t *vp, vattr_t *vap, int flags, cred_t *cr, caller_context_t *ct) argument [all...] |
H A D | ctfs_ctl.c | 130 ctfs_ctl_common_getattr(vnode_t *vp, vattr_t *vap) argument 134 vap->va_type = VREG; 135 vap->va_nlink = 1; 136 vap->va_size = 0; 137 vap->va_ctime = ctlnode->ctfs_ctl_contract->ct_ctime; 139 vap->va_atime = vap->va_mtime = 142 ctfs_common_getattr(vp, vap); 152 ctfs_ctl_getattr(vnode_t *vp, vattr_t *vap, int flags, argument 155 vap 165 ctfs_stat_getattr(vnode_t *vp, vattr_t *vap, int flags, cred_t *cr, caller_context_t *ct) argument [all...] |
/illumos-gate/usr/src/stand/lib/fs/nfs/ |
H A D | nfs2ops.c | 183 nfsgetattr(struct nfs_file *nfp, struct vattr *vap) argument 206 if (vap->va_mask & AT_TYPE) { 208 vap->va_type = VBAD; 210 vap->va_type = nf_to_vt[na->type]; 212 if (vap->va_mask & AT_MODE) 213 vap->va_mode = na->mode; 214 if (vap->va_mask & AT_SIZE) 215 vap->va_size = na->size; 216 if (vap->va_mask & AT_NODEID) 217 vap [all...] |
H A D | nfs3ops.c | 183 nfs3getattr(struct nfs_file *nfp, struct vattr *vap) argument 214 if (vap->va_mask & AT_TYPE) { 216 vap->va_type = VBAD; 218 vap->va_type = nf3_to_vt[na->type]; 220 if (vap->va_mask & AT_MODE) 221 vap->va_mode = (mode_t)na->mode; 222 if (vap->va_mask & AT_SIZE) 223 vap->va_size = (u_offset_t)na->size; 224 if (vap->va_mask & AT_NODEID) 225 vap [all...] |
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/ |
H A D | dcs_msg.c | 116 va_list vap; local 127 va_start(vap, err_code); 128 (void) vsnprintf(err_str, MAX_MSG_LEN, dcs_err_fmt[err_code], vap); 129 va_end(vap); 237 va_list vap; local 246 va_start(vap, fmt); 247 (void) vsnprintf(err_str, MAX_MSG_LEN, fmt, vap); 248 va_end(vap);
|
/illumos-gate/usr/src/uts/common/fs/doorfs/ |
H A D | door_vnops.c | 45 static int door_getattr(struct vnode *vp, struct vattr *vap, 148 door_getattr(struct vnode *vp, struct vattr *vap, int flags, struct cred *cr, argument 154 vap->va_mask = 0; /* bit-mask of attributes */ 155 vap->va_type = vp->v_type; /* vnode type (for create) */ 156 vap->va_mode = 0777; /* file access mode */ 157 vap->va_uid = 0; /* owner user id */ 158 vap->va_gid = 0; /* owner group id */ 159 vap->va_fsid = doordev; /* file system id (dev for now) */ 160 vap->va_nodeid = (ino64_t)0; /* node id */ 161 vap [all...] |
/illumos-gate/usr/src/uts/common/fs/sockfs/ |
H A D | sockcommon_vnops.c | 278 socket_vop_getattr(struct vnode *vp, struct vattr *vap, int flags, argument 301 vap->va_type = VCHR; 302 vap->va_mode = 0; 304 vap->va_type = vp->v_type; 305 vap->va_mode = S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP| 308 vap->va_uid = vap->va_gid = 0; 309 vap->va_fsid = fsid; 315 vap->va_nodeid = ((ino_t)so >> sonode_shift) & 0xFFFF; 316 vap 360 socket_vop_setattr(struct vnode *vp, struct vattr *vap, int flags, struct cred *cr, caller_context_t *ct) argument [all...] |
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_srv_attr.c | 145 sarg.vap->va_mask = AT_ALL; 264 if (sarg->rdattr_error && !(sarg->vap->va_mask & AT_TYPE)) { 268 ASSERT(sarg->vap->va_mask & AT_TYPE); 276 na->type = vt_to_nf4[sarg->vap->va_type]; 282 if (sarg->vap->va_type == VDIR) 298 ASSERT(sarg->vap->va_mask & AT_TYPE); 299 if (sarg->vap->va_type != nf4_to_vt[na->type]) 395 vattr_t vap2[1], *vap = sarg->vap; local 401 if ((vap 432 vattr_t *vap = sarg->vap; local 879 vattr_t va, *vap = sarg->vap; local 1298 vattr_t *vap, va; local [all...] |
H A D | nfs_auth_xdr.c | 35 xdr_varg(XDR *xdrs, varg_t *vap) argument 37 if (!xdr_u_int(xdrs, &vap->vers)) 40 switch (vap->vers) { 42 if (!xdr_nfsauth_arg(xdrs, &vap->arg_u.arg)) 49 vap->vers = V_ERROR;
|
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/ |
H A D | nfsauth_xdr.c | 36 xdr_varg(XDR *xdrs, varg_t *vap) argument 38 if (!xdr_u_int(xdrs, &vap->vers)) 41 switch (vap->vers) { 43 if (!xdr_nfsauth_arg(xdrs, &vap->arg_u.arg)) 50 vap->vers = V_ERROR;
|
/illumos-gate/usr/src/uts/common/fs/sharefs/ |
H A D | sharefs_vnops.c | 159 sharefs_getattr(vnode_t *vp, vattr_t *vap, int flags, cred_t *cr, argument 165 vap->va_type = VREG; 166 vap->va_mode = S_IRUSR | S_IRGRP | S_IROTH; 167 vap->va_nodeid = SHAREFS_INO_FILE; 168 vap->va_nlink = 1; 181 vap->va_size = sharetab_size; 182 vap->va_mtime = sharetab_mtime; 185 vap->va_size = sft->sharefs_size; 186 vap->va_mtime = sft->sharefs_snap_time; 191 vap [all...] |
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/ |
H A D | smbfs_client.c | 193 smbfs_attrcache_va(vnode_t *vp, struct vattr *vap) 198 vattr_to_fattr(vp, vap, &fa); 393 * NFS: smbfs_cache_fattr(vap, fa, vap, t, cr); 411 smbfsgetattr(vnode_t *vp, struct vattr *vap, cred_t *cr) argument 426 if (vap->va_mask & (AT_UID | AT_GID)) { 444 vap->va_mask |= mask; 450 smbfattr_to_vattr(vp, &fa, vap); 451 if (vap->va_mask & AT_XVATTR) 452 smbfattr_to_xvattr(&fa, vap); 464 smbfattr_to_vattr(vnode_t *vp, struct smbfattr *fa, struct vattr *vap) argument 515 smbfattr_to_xvattr(struct smbfattr *fa, struct vattr *vap) argument [all...] |
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/ |
H A D | fake_vop.c | 237 vattr_t *vap, 247 error = stat_to_vattr(&st, vap); 249 if (vap->va_mask & AT_XVATTR) 250 (void) fop__getxvattr(vp, (xvattr_t *)vap); 259 vattr_t *vap, 266 if (vap->va_mask & AT_SIZE) { 267 if (ftruncate(vp->v_fd, vap->va_size) == -1) 273 if (vap->va_mask & AT_XVATTR) 274 (void) fop__setxvattr(vp, (xvattr_t *)vap); 276 if (vap 235 fop_getattr( vnode_t *vp, vattr_t *vap, int flags, cred_t *cr, caller_context_t *ct) argument 257 fop_setattr( vnode_t *vp, vattr_t *vap, int flags, cred_t *cr, caller_context_t *ct) argument 376 fop_create( vnode_t *dvp, char *name, vattr_t *vap, vcexcl_t excl, int mode, vnode_t **vpp, cred_t *cr, int flags, caller_context_t *ct, vsecattr_t *vsecp) argument 536 fop_mkdir( vnode_t *dvp, char *name, vattr_t *vap, vnode_t **vpp, cred_t *cr, caller_context_t *ct, int flags, vsecattr_t *vsecp) argument 639 fop_symlink( vnode_t *dvp, char *linkname, vattr_t *vap, char *target, cred_t *cr, caller_context_t *ct, int flags) argument 1190 stat_to_vattr(const struct stat *st, vattr_t *vap) argument [all...] |