/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/nfs/ |
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;
|
H A D | nfs4_attr.c | 65 nfs4_ver_fattr4_attr(vattr_t *vap, struct nfs4_ntov_map *ntovp, argument 79 switch (ntovp->vbit & vap->va_mask) { 81 nap->size = vap->va_size; 84 nap->mode = vap->va_mode; 91 if (*errorp = nfs_idmap_uid_str(vap->va_uid, &nap->owner, 100 if (*errorp = nfs_idmap_gid_str(vap->va_gid, &nap->owner_group, 106 (*errorp = nfs4_time_vton(&vap->va_ctime, 118 (*errorp = nfs4_time_vton(&vap->va_mtime, 129 if (*errorp = nfs4_time_vton(&vap->va_ctime, 153 nfs4_set_fattr4_attr(vattr_t *vap, vsecattr_ argument 232 vattr_to_fattr4(vattr_t *vap, vsecattr_t *vsap, fattr4 *fattrp, int flags, enum nfs_opnum4 op, bitmap4 supp) argument [all...] |
H A D | nfs_acl_srv.c | 453 vattr_t *vap; local 456 vap = NULL; 465 vap = rfs4_delegated_getattr(vp, &va, 0, cr) ? NULL : &va; 496 vap = rfs4_delegated_getattr(vp, &va, 0, cr) ? NULL : &va; 501 vattr_to_post_op_attr(vap, &resp->resok.attr); 529 vattr_to_post_op_attr(vap, &resp->resfail.attr); 564 vattr_t *vap; local 567 vap = NULL; 578 vap = rfs4_delegated_getattr(vp, &va, 0, cr) ? NULL : &va; 588 vap [all...] |
/illumos-gate/usr/src/uts/common/fs/ctfs/ |
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_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_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_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_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...] |
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...] |
/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/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/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/tmpfs/ |
H A D | tmp_tnode.c | 160 tmpnode_init(struct tmount *tm, struct tmpnode *t, vattr_t *vap, cred_t *cred) argument 165 ASSERT(vap != NULL); 169 t->tn_mode = MAKEIMODE(vap->va_type, vap->va_mode); 171 t->tn_type = vap->va_type; 177 t->tn_uid = vap->va_uid; 178 t->tn_gid = vap->va_gid; 185 t->tn_rdev = vap->va_rdev; 199 vp->v_type = vap->va_type; 200 vp->v_rdev = vap [all...] |
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | utime.c | 52 cfutimesat(int fd, char *fname, int nmflag, vattr_t *vap, int flags, int follow) argument 107 error = VOP_SETATTR(vp, vap, flags, CRED(), NULL);
|
/illumos-gate/usr/src/uts/common/fs/dev/ |
H A D | sdev_ipnetops.c | 47 devipnet_fill_vattr(struct vattr *vap, dev_t dev) argument 51 *vap = sdev_vattr_chr; 52 vap->va_rdev = dev; 53 vap->va_mode |= 0666; 56 vap->va_atime = now; 57 vap->va_mtime = now; 58 vap->va_ctime = now; 87 struct vattr *vap = (struct vattr *)arg; local 93 devipnet_fill_vattr(vap, dev);
|
H A D | sdev_netops.c | 77 devnet_create_rvp(const char *nm, struct vattr *vap, dls_dl_handle_t *ddhp) argument 94 *vap = sdev_vattr_chr; 95 vap->va_mode |= 0666; 96 vap->va_rdev = dev; 99 vap->va_atime = now; 100 vap->va_mtime = now; 101 vap->va_ctime = now;
|
/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_acl.c | 541 smbfs_acl_setids(vnode_t *vp, vattr_t *vap, cred_t *cr) argument 548 if (vap->va_mask & AT_UID) { 550 uid = vap->va_uid; 553 if (vap->va_mask & AT_GID) { 555 gid = vap->va_gid;
|
/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...] |