Home
last modified time | relevance | path

Searched refs:exi (Results 1 – 21 of 21) sorted by relevance

/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs_export.c789 #define exp_hash_unlink(exi, hash_name) \ argument
790 if (*(exi)->hash_name.bckt == (exi)) \
791 *(exi)->hash_name.bckt = (exi)->hash_name.next; \
792 if ((exi)->hash_name.prev) \
793 (exi)->hash_name.prev->hash_name.next = (exi)->hash_name.next; \
794 if ((exi)->hash_name.next) \
795 (exi)->hash_name.next->hash_name.prev = (exi)->hash_name.prev; \
796 (exi)->hash_name.bckt = NULL;
798 #define exp_hash_link(exi, hash_name, bucket) \ argument
799 (exi)->hash_name.bckt = (bucket); \
[all …]
H A Dnfs4_srv_ns.c93 nfs4_vget_pseudo(struct exportinfo *exi, vnode_t **vpp, fid_t *fidp) in nfs4_vget_pseudo() argument
101 for (visp = exi->exi_visible; visp; visp = visp->vis_next) { in nfs4_vget_pseudo()
113 error = vop_fid_pseudo(exi->exi_vp, &exp_fid); in nfs4_vget_pseudo()
118 VN_HOLD(exi->exi_vp); in nfs4_vget_pseudo()
119 *vpp = exi->exi_vp; in nfs4_vget_pseudo()
152 struct exportinfo *exi; in pseudo_exportfs() local
161 exi = kmem_zalloc(sizeof (*exi), KM_SLEEP); in pseudo_exportfs()
162 exi->exi_fsid = fsid; in pseudo_exportfs()
163 exi->exi_fid = *fid; in pseudo_exportfs()
164 exi->exi_vp = vp; in pseudo_exportfs()
[all …]
H A Dnfs_cmd.c60 static struct charset_cache *nfscmd_charmap(exportinfo_t *exi,
243 nfscmd_findmap(struct exportinfo *exi, struct sockaddr *sp) in nfscmd_findmap() argument
251 ASSERT(exi != NULL); in nfscmd_findmap()
254 if (exi == NULL || sp == NULL) in nfscmd_findmap()
257 mutex_enter(&exi->exi_lock); in nfscmd_findmap()
259 if (!(exi->exi_export.ex_flags & EX_CHARMAP)) { in nfscmd_findmap()
260 mutex_exit(&exi->exi_lock); in nfscmd_findmap()
264 for (charset = exi->exi_charset; in nfscmd_findmap()
271 mutex_exit(&exi->exi_lock); in nfscmd_findmap()
275 charset = nfscmd_charmap(exi, sp); in nfscmd_findmap()
[all …]
H A Dnfs_auth.c57 static void exi_cache_trim(struct exportinfo *exi);
319 nfsauth4_access(struct exportinfo *exi, vnode_t *vp, struct svc_req *req, in nfsauth4_access() argument
324 access = nfsauth_access(exi, req, cr, uid, gid, ngids, gids); in nfsauth4_access()
344 if (has_visible(exi, vp)) in nfsauth4_access()
371 nfsauth_retrieve(nfsauth_globals_t *nag, struct exportinfo *exi, in nfsauth_retrieve() argument
398 varg.arg_u.arg.areq.req_path = exi->exi_export.ex_path; in nfsauth_retrieve()
628 struct exportinfo *exi; in nfsauth_refresh_thread() local
655 exi = ren->ren_exi; in nfsauth_refresh_thread()
656 ASSERT(exi != NULL); in nfsauth_refresh_thread()
723 struct exportinfo *, exi, in nfsauth_refresh_thread()
[all …]
H A Dnfs3_srv.c106 rfs3_getattr(GETATTR3args *args, GETATTR3res *resp, struct exportinfo *exi, in rfs3_getattr() argument
113 vp = nfs3_fhtovp(&args->object, exi); in rfs3_getattr()
116 cred_t *, cr, vnode_t *, vp, struct exportinfo *, exi, in rfs3_getattr()
139 cred_t *, cr, vnode_t *, vp, struct exportinfo *, exi, in rfs3_getattr()
155 cred_t *, cr, vnode_t *, vp, struct exportinfo *, exi, in rfs3_getattr()
170 rfs3_setattr(SETATTR3args *args, SETATTR3res *resp, struct exportinfo *exi, in rfs3_setattr() argument
187 vp = nfs3_fhtovp(&args->object, exi); in rfs3_setattr()
190 cred_t *, cr, vnode_t *, vp, struct exportinfo *, exi, in rfs3_setattr()
211 exi)) { in rfs3_setattr()
269 (exi->exi_export.ex_flags & EX_NOSUID)) in rfs3_setattr()
[all …]
H A Dnfs_log.c70 struct exportinfo *exi; /* who are we related to? */ member
197 nfslog_setup(struct exportinfo *exi) in nfslog_setup() argument
203 kex = &exi->exi_export; in nfslog_setup()
221 exi->exi_logbuffer = lbp; in nfslog_setup()
254 exi->exi_logbuffer = lbp; in nfslog_setup()
279 exi->exi_logbuffer = nlbp; in nfslog_setup()
290 nfslog_disable(struct exportinfo *exi) in nfslog_disable() argument
292 log_buffer_rele(exi->exi_logbuffer); in nfslog_disable()
488 lr.exi = NULL; in log_file_create()
603 nfslog_record_alloc(struct exportinfo *exi, int alloc_indx, void **cookie, in nfslog_record_alloc() argument
[all …]
H A Dnfs_server.c188 #define PUBLICFH_CHECK(ne, disp, exi, fsid, xfid) \ argument
190 ((exi->exi_export.ex_flags & EX_PUBLIC) || \
191 (exi == ne->exi_public && exportmatch(ne->exi_root, \
208 #define NFSLOG_COPY_NETBUF(exi, xprt, nb) { \ argument
655 rpc_null(caddr_t *argp, caddr_t *resp, struct exportinfo *exi, in rpc_null() argument
662 rpc_null_v3(caddr_t *argp, caddr_t *resp, struct exportinfo *exi, in rpc_null_v3() argument
666 cred_t *, cr, vnode_t *, NULL, struct exportinfo *, exi); in rpc_null_v3()
668 cred_t *, cr, vnode_t *, NULL, struct exportinfo *, exi); in rpc_null_v3()
673 rfs_error(caddr_t *argp, caddr_t *resp, struct exportinfo *exi, in rfs_error() argument
1506 struct exportinfo *exi = NULL; in common_dispatch() local
[all …]
H A Dnfs_srv.c130 rfs_getattr(fhandle_t *fhp, struct nfsattrstat *ns, struct exportinfo *exi, in rfs_getattr() argument
137 vp = nfs_fhtovp(fhp, exi); in rfs_getattr()
156 acl_perm(vp, exi, &va, cr); in rfs_getattr()
178 struct exportinfo *exi, struct svc_req *req, cred_t *cr, bool_t ro) in rfs_setattr() argument
190 vp = nfs_fhtovp(&args->saa_fh, exi); in rfs_setattr()
237 (exi->exi_export.ex_flags & EX_NOSUID)) in rfs_setattr()
341 acl_perm(vp, exi, &va, cr); in rfs_setattr()
367 struct exportinfo *exi; in rfs_cross_mnt() local
387 exi = checkexport(&vp->v_vfsp->vfs_fsid, &fid); in rfs_cross_mnt()
388 if (exi == NULL || in rfs_cross_mnt()
[all …]
H A Dnfs_acl_srv.c79 acl2_getacl(GETACL2args *args, GETACL2res *resp, struct exportinfo *exi, in acl2_getacl() argument
86 vp = nfs_fhtovp(&args->fh, exi); in acl2_getacl()
98 if ((error == ENOSYS) && !(exi->exi_export.ex_flags & EX_NOACLFAB)) { in acl2_getacl()
193 acl2_setacl(SETACL2args *args, SETACL2res *resp, struct exportinfo *exi, in acl2_setacl() argument
200 vp = nfs_fhtovp(&args->fh, exi); in acl2_setacl()
248 acl2_getattr(GETATTR2args *args, GETATTR2res *resp, struct exportinfo *exi, in acl2_getattr() argument
255 vp = nfs_fhtovp(&args->fh, exi); in acl2_getattr()
287 acl2_access(ACCESS2args *args, ACCESS2res *resp, struct exportinfo *exi, in acl2_access() argument
295 vp = nfs_fhtovp(&args->fh, exi); in acl2_access()
384 struct exportinfo *exi, struct svc_req *req, cred_t *cr, bool_t ro) in acl2_getxattrdir() argument
[all …]
H A Dnfs4_srv_readdir.c114 struct exportinfo **exi, struct svc_req *req, struct compound_state *cs, in nfs4_readdir_getvp() argument
210 saveexi = cs->exi; in nfs4_readdir_getvp()
211 cs->exi = newexi; in nfs4_readdir_getvp()
221 cs->exi = saveexi; in nfs4_readdir_getvp()
233 *exi = newexi; in nfs4_readdir_getvp()
480 check_visible = PSEUDO(cs->exi) || in rfs4_op_readdir()
481 ! is_exported_sec(cs->nfsflavor, cs->exi) || in rfs4_op_readdir()
696 !nfs_visible_inode(cs->exi, dp->d_ino, &visp)) { in rfs4_op_readdir()
768 name = nfscmd_convname(ca, cs->exi, dp->d_name, in rfs4_op_readdir()
966 struct exportinfo *exi; in rfs4_op_readdir() local
[all …]
H A Dnfs4_srv.c1097 struct exportinfo *exi; in do_rfs4_op_secinfo() local
1108 exi = cs->exi; in do_rfs4_op_secinfo()
1109 ASSERT(exi != NULL); in do_rfs4_op_secinfo()
1119 ASSERT3U(exi->exi_zoneid, ==, ne->exi_root->exi_zoneid); in do_rfs4_op_secinfo()
1151 different_export = nfs_exported(exi, dvp); in do_rfs4_op_secinfo()
1170 (PSEUDO(exi) || !is_exported_sec(cs->nfsflavor, exi) || in do_rfs4_op_secinfo()
1172 if (! nfs_visible(exi, vp, &different_export)) { in do_rfs4_op_secinfo()
1216 exi = nfs_vptoexi(NULL, vp, cs->cr, &walk, NULL, TRUE); in do_rfs4_op_secinfo()
1218 exi = checkexport4(&vp->v_vfsp->vfs_fsid, &fid, vp); in do_rfs4_op_secinfo()
1220 if (exi == NULL) { in do_rfs4_op_secinfo()
[all …]
H A Dnfs4_srv_attr.c338 fattr4_get_fh_expire_type(struct exportinfo *exi, uint32_t *fh_expire_typep) in fattr4_get_fh_expire_type() argument
343 if (exi == NULL) in fattr4_get_fh_expire_type()
345 ex_flags = exi->exi_export.ex_flags; in fattr4_get_fh_expire_type()
399 error = fattr4_get_fh_expire_type(sarg->cs->exi, in rfs4_fattr4_fh_expire_type()
409 error = fattr4_get_fh_expire_type(sarg->cs->exi, in rfs4_fattr4_fh_expire_type()
442 if (nfs_visible_change(cs->exi, vp, &vis_change)) { in fattr4_get_change()
684 } else if (sarg->cs->exi->exi_volatile_dev) { in rfs4_fattr4_fsid()
685 pmaj[0] = sarg->cs->exi->exi_fsid.val[0]; in rfs4_fattr4_fsid()
686 pmaj[1] = sarg->cs->exi->exi_fsid.val[1]; in rfs4_fattr4_fsid()
701 } else if (sarg->cs->exi->exi_volatile_dev) { in rfs4_fattr4_fsid()
[all …]
H A Dnfs4_state.c4090 struct exportinfo *exi = (struct exportinfo *)e; in rfs4_lo_state_walk_callout() local
4094 efhp = (fhandle_t *)&exi->exi_fh; in rfs4_lo_state_walk_callout()
4124 struct exportinfo *exi = (struct exportinfo *)e; in rfs4_state_walk_callout() local
4128 efhp = (fhandle_t *)&exi->exi_fh; in rfs4_state_walk_callout()
4157 struct exportinfo *exi = (struct exportinfo *)e; in rfs4_deleg_state_walk_callout() local
4161 efhp = (fhandle_t *)&exi->exi_fh; in rfs4_deleg_state_walk_callout()
4188 struct exportinfo *exi = (struct exportinfo *)e; in rfs4_file_walk_callout() local
4192 efhp = (fhandle_t *)&exi->exi_fh; in rfs4_file_walk_callout()
4240 rfs4_clean_state_exi(nfs_export_t *ne, struct exportinfo *exi) in rfs4_clean_state_exi() argument
4246 ASSERT(ng->nfs_zoneid == exi->exi_zoneid); in rfs4_clean_state_exi()
[all …]
H A Dnfs_log_xdr.c147 struct exportinfo *exi, in xdr_nfslog_request_record() argument
205 if (!xdr_string(xdrs, &exi->exi_export.ex_tag, ~0)) in xdr_nfslog_request_record()
/illumos-gate/usr/src/cmd/mdb/common/modules/nfs/
H A Dnfssrv.c164 struct exportinfo exi; in nfs_expinfo_dcmd() local
177 if (mdb_vread(&exi, sizeof (exi), addr) == -1) { in nfs_expinfo_dcmd()
182 if (mdb_vread(&v_flag, sizeof (v_flag), (uintptr_t)exi.exi_vp in nfs_expinfo_dcmd()
188 path = mdb_alloc(exi.exi_export.ex_pathlen + 1, UM_SLEEP | UM_GC); in nfs_expinfo_dcmd()
189 if (mdb_readstr(path, exi.exi_export.ex_pathlen + 1, in nfs_expinfo_dcmd()
190 (uintptr_t)exi.exi_export.ex_path) == -1) { in nfs_expinfo_dcmd()
199 mdb_printf("rtvp: %?p ref : %-8u flag: %#x (%b)%s\n", exi.exi_vp, in nfs_expinfo_dcmd()
200 exi.exi_count, exi.exi_export.ex_flags, exi.exi_export.ex_flags, in nfs_expinfo_dcmd()
203 mdb_printf("dvp : %?p anon: %-8u logb: %p\n", exi.exi_dvp, in nfs_expinfo_dcmd()
204 exi.exi_export.ex_anon, exi.exi_logbuffer); in nfs_expinfo_dcmd()
[all …]
/illumos-gate/usr/src/uts/common/nfs/
H A Dexport.h479 #define EXI_TO_ZONEROOTVP(exi) ((exi)->exi_ne->exi_root->exi_vp) argument
600 #define PSEUDO(exi) ((exi)->exi_export.ex_flags & EX_PSEUDO) argument
601 #define EXP_LINKED(exi) ((exi)->fid_hash.bckt != NULL) argument
612 #define exportmatch(exi, fsid, fid) \ argument
613 (EQFSID(&(exi)->exi_fsid, (fsid)) && EQFID(&(exi)->exi_fid, (fid)))
624 (nfsauth4_access((cs)->exi, (cs)->vp, (req), (cs)->basecr, NULL, \
H A Dnfs_log.h646 extern void nfslog_share_record(struct exportinfo *exi, cred_t *cr);
647 extern void nfslog_unshare_record(struct exportinfo *exi, cred_t *cr);
H A Dnfs4.h1206 struct exportinfo *exi; member
/illumos-gate/usr/src/lib/libdtrace/common/
H A Dnfs.d109 noi_shrpath = (P->exi == NULL || P->exi->exi_export.ex_path == NULL) ?
110 "<unknown>" : P->exi->exi_export.ex_path;
111 noi_zoneid = (P->exi == NULL) ? -1 : P->exi->exi_zoneid;
/illumos-gate/usr/src/uts/common/klm/
H A Dklmmod.c354 lm_unexport(struct exportinfo *exi) in lm_unexport() argument
356 nlm_unexport(exi); in lm_unexport()
H A Dnlm_impl.c2573 nlm_zone_unexport(struct nlm_globals *g, struct exportinfo *exi) in nlm_zone_unexport() argument
2605 if (!EQFSID(&exi->exi_fsid, &vp->v_vfsp->vfs_fsid)) in nlm_zone_unexport()
2632 nlm_unexport(struct exportinfo *exi) in nlm_unexport() argument
2638 if (g->nlm_zoneid == exi->exi_zoneid) { in nlm_unexport()
2646 nlm_zone_unexport(g, exi); in nlm_unexport()