/illumos-gate/usr/src/cmd/fs.d/nfs/nfsmapid/ |
H A D | nfsmapid_test.c | 203 str.utf8string_len = strlen(argv[1]); in do_test() 214 str.utf8string_len = strlen(argv[1]); in do_test() 328 if (!u8s || !u8s->utf8string_val || !u8s->utf8string_len || in nfs_idmap_str_uid() 343 if ((mapargp = malloc(MAPID_ARG_LEN(u8s->utf8string_len))) == NULL) { in nfs_idmap_str_uid() 345 MAPID_ARG_LEN(u8s->utf8string_len)); in nfs_idmap_str_uid() 350 mapargp->u_arg.len = u8s->utf8string_len; in nfs_idmap_str_uid() 432 u8s->utf8string_len = strlen("nobody"); in nfs_idmap_uid_str() 478 u8s->utf8string_len = resp->u_res.len; in nfs_idmap_uid_str() 479 bcopy(resp->str, u8s->utf8string_val, u8s->utf8string_len); in nfs_idmap_uid_str() 502 if (!u8s || !u8s->utf8string_val || !u8s->utf8string_len || in nfs_idmap_str_gid() [all …]
|
H A D | nfsmapid_server.c | 622 if (nfsfsloc_args->utf8string_len >= MAXHOSTNAMELEN) { in nfsmapid_server_netinfo() 631 snprintf(host, nfsfsloc_args->utf8string_len + 1, in nfsmapid_server_netinfo() 902 (uint_t *)&objp->utf8string_len, NFS4_MAX_UTF8STRING)); in xdr_utf8string()
|
/illumos-gate/usr/src/stand/lib/fs/nfs/ |
H A D | nfs4ops.c | 75 str.utf8string_len = sizeof (tagname) - 1; in nfs4read() 195 str.utf8string_len = sizeof (tagname) - 1; in nfs4getattr() 402 str.utf8string_len = sizeof (tagname) - 1; in nfs4lookup() 417 lookupargs.la_pathname.utf8string_len = strlen(name); in nfs4lookup() 419 bkmem_alloc(lookupargs.la_pathname.utf8string_len); in nfs4lookup() 425 lookupargs.la_pathname.utf8string_len); in nfs4lookup() 456 lookupargs.la_pathname.utf8string_len); in nfs4lookup() 469 lookupargs.la_pathname.utf8string_len); in nfs4lookup() 488 lookupargs.la_pathname.utf8string_len); in nfs4lookup() 515 str.utf8string_len = sizeof (tagname) - 1; in nfs4lookupp() [all …]
|
H A D | getdents4.c | 106 str.utf8string_len = sizeof (tagname) - 1; in nfs4getdents() 129 rdbuf.etlist[j].b_name.utf8string_len = NFS_MAXNAMLEN; in nfs4getdents() 231 if ((namlen = ep->b_name.utf8string_len) == 0) in nfs4getdents()
|
H A D | nfs4_xdr.c | 48 (uint_t *)&objp->utf8string_len, NFS4_MAX_UTF8STRING)); in xdr_b_utf8string()
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_idmap.c | 317 if (!u8s || !u8s->utf8string_val || u8s->utf8string_len == 0 || in nfs_idmap_str_uid() 368 mapargp = kmem_alloc(MAPID_ARG_LEN(u8s->utf8string_len), KM_SLEEP); in nfs_idmap_str_uid() 370 mapargp->u_arg.len = u8s->utf8string_len; in nfs_idmap_str_uid() 437 kmem_free(mapargp, MAPID_ARG_LEN(u8s->utf8string_len)); in nfs_idmap_str_uid() 444 kmem_free(mapargp, MAPID_ARG_LEN(u8s->utf8string_len)); in nfs_idmap_str_uid() 696 if (!u8s || !u8s->utf8string_val || u8s->utf8string_len == 0 || in nfs_idmap_str_gid() 747 mapargp = kmem_alloc(MAPID_ARG_LEN(u8s->utf8string_len), KM_SLEEP); in nfs_idmap_str_gid() 749 mapargp->u_arg.len = u8s->utf8string_len; in nfs_idmap_str_gid() 817 kmem_free(mapargp, MAPID_ARG_LEN(u8s->utf8string_len)); in nfs_idmap_str_gid() 824 kmem_free(mapargp, MAPID_ARG_LEN(u8s->utf8string_len)); in nfs_idmap_str_gid() [all …]
|
H A D | nfs4_dispatch.c | 531 resp->tag.utf8string_len = argsp->tag.utf8string_len; in rfs4_send_minor_mismatch() 532 if (argsp->tag.utf8string_len != 0) { in rfs4_send_minor_mismatch() 534 kmem_alloc(argsp->tag.utf8string_len, KM_SLEEP); in rfs4_send_minor_mismatch() 536 resp->tag.utf8string_len); in rfs4_send_minor_mismatch() 591 rbp->tag.utf8string_len = argsp->tag.utf8string_len; in rfs4_resource_err() 592 if (argsp->tag.utf8string_len != 0) { in rfs4_resource_err() 594 kmem_alloc(argsp->tag.utf8string_len, KM_SLEEP); in rfs4_resource_err() 596 rbp->tag.utf8string_len); in rfs4_resource_err()
|
H A D | nfs4_srv_readdir.c | 427 owner.utf8string_len = group.utf8string_len = 0; in rfs4_op_readdir() 1244 if (owner.utf8string_len != 0) { in rfs4_op_readdir() 1246 owner.utf8string_len); in rfs4_op_readdir() 1247 owner.utf8string_len = 0; in rfs4_op_readdir() 1260 (owner.utf8string_len / in rfs4_op_readdir() 1268 owner.utf8string_len); in rfs4_op_readdir() 1270 rndup = RNDUP(owner.utf8string_len) / in rfs4_op_readdir() 1275 owner.utf8string_len); in rfs4_op_readdir() 1293 if (group.utf8string_len != 0) { in rfs4_op_readdir() 1296 group.utf8string_len); in rfs4_op_readdir() [all …]
|
H A D | nfs4_xdr.c | 203 (uint_t *)&objp->utf8string_len, NFS4_MAX_UTF8STRING)); in xdr_utf8string() 206 kmem_free(objp->utf8string_val, objp->utf8string_len); in xdr_utf8string() 724 objp->who.utf8string_len = 0; in xdr_nfsace4() 728 (uint_t *)&objp->who.utf8string_len, in xdr_nfsace4() 736 kmem_free(objp->who.utf8string_val, objp->who.utf8string_len); in xdr_nfsace4() 856 (ug)->u_last.utf8string_len = (ug)->u_curr.utf8string_len; \ 866 (ug)->g_last.utf8string_len = (ug)->g_curr.utf8string_len; \ 881 pug->u_curr.utf8string_len = 0; in alloc_ugcache() 882 pug->u_last.utf8string_len = 0; in alloc_ugcache() 883 pug->g_curr.utf8string_len = 0; in alloc_ugcache() [all …]
|
H A D | nfs4_acl.c | 266 if ((ace4->who.utf8string_len > 0) && in vs_ace4_destroy() 269 ace4->who.utf8string_len); in vs_ace4_destroy() 272 ace4->who.utf8string_len = 0; in vs_ace4_destroy() 784 if ((acep->who.utf8string_len > 0) && in ln_aent_to_ace4() 787 acep->who.utf8string_len); in ln_aent_to_ace4() 1116 if ((ace4p->who.utf8string_len == 6) && in ace4_to_aent_legal() 1452 if ((ace4p->who.utf8string_len == 6) && in ln_ace4_to_aent() 1466 } else if ((ace4p->who.utf8string_len == 9) && in ln_ace4_to_aent() 1473 } else if ((ace4p->who.utf8string_len == 6) && in ln_ace4_to_aent() 1808 if ((nfsace4->who.utf8string_len == 6) && in ace4_to_acet() [all …]
|
H A D | nfs4_attr.c | 357 RNDUP(na[attrcnt].owner.utf8string_len); in vattr_to_fattr4() 363 na[attrcnt].owner_group.utf8string_len); in vattr_to_fattr4() 380 RNDUP(tmpacl[j].who.utf8string_len); in vattr_to_fattr4() 422 na[uid_attr].owner.utf8string_len); in vattr_to_fattr4() 426 na[gid_attr].owner_group.utf8string_len); in vattr_to_fattr4()
|
H A D | nfs4_subr.c | 549 if (u8s == NULL || u8s->utf8string_len <= 0 || in utf8_to_fn() 560 int len = u8s->utf8string_len; in utf8_to_fn() 596 len = str->utf8string_len; in utf8_to_str() 640 str->utf8string_len = 0; in str_to_utf8() 647 str->utf8string_len = len; in str_to_utf8() 661 if (src->utf8string_len > 0) { in utf8_copy() 662 dest->utf8string_val = kmem_alloc(src->utf8string_len, in utf8_copy() 665 src->utf8string_len); in utf8_copy() 666 dest->utf8string_len = src->utf8string_len; in utf8_copy() 669 dest->utf8string_len = 0; in utf8_copy() [all …]
|
H A D | nfs4_client_secinfo.c | 588 comp->utf8string_len = strlen(comp_start); in comp_getn() 596 comp->utf8string_len = 0; in comp_getn() 668 argop[num_argops - 1].nfs_argop4_u.opsecinfo.name.utf8string_len = in nfs4secinfo_otw() 669 comp.utf8string_len; in nfs4secinfo_otw()
|
H A D | nfs4x_srv.c | 183 nip->nii_domain.utf8string_len = len = strlen(sol_idom); in rfs4x_get_server_impl_id() 189 nip->nii_name.utf8string_len = len = strlen(sol_impl); in rfs4x_get_server_impl_id() 503 len = nip->nii_name.utf8string_len; in rfs4x_exchange_id_free() 507 len = nip->nii_domain.utf8string_len; in rfs4x_exchange_id_free()
|
H A D | nfs4_stub_vnops.c | 1755 kmem_zalloc(fsp->server_val->utf8string_len + 1, KM_SLEEP); in nfs4_trigger_esi_create_referral() 1757 fsp->server_val->utf8string_len); in nfs4_trigger_esi_create_referral() 1758 esi->esi_hostname[fsp->server_val->utf8string_len] = '\0'; in nfs4_trigger_esi_create_referral() 1800 if ((p - esi->esi_path) + comp->utf8string_len + 1 > MAXPATHLEN) in nfs4_trigger_esi_create_referral() 1802 bcopy(comp->utf8string_val, p, comp->utf8string_len); in nfs4_trigger_esi_create_referral() 1803 p += comp->utf8string_len; in nfs4_trigger_esi_create_referral() 1822 kmem_free(esi->esi_hostname, fsp->server_val->utf8string_len + 1); in nfs4_trigger_esi_create_referral()
|
H A D | nfs4_callback.c | 565 resp->tag.utf8string_len = args->tag.utf8string_len; in cb_compound() 566 if (args->tag.utf8string_len != 0) { in cb_compound() 568 kmem_alloc(resp->tag.utf8string_len, KM_SLEEP); in cb_compound() 570 args->tag.utf8string_len); in cb_compound()
|
H A D | nfs4_vfsops.c | 1514 svp->sv_hostname = kmem_zalloc(host->utf8string_len + 1, KM_SLEEP); in update_servinfo4() 1515 bcopy(host->utf8string_val, svp->sv_hostname, host->utf8string_len); in update_servinfo4() 1516 svp->sv_hostname[host->utf8string_len] = '\0'; in update_servinfo4() 1517 svp->sv_hostnamelen = host->utf8string_len + 1; in update_servinfo4() 1535 if ((p - spath) + comp->utf8string_len + 1 > MAXPATHLEN) { in update_servinfo4() 1540 bcopy(comp->utf8string_val, p, comp->utf8string_len); in update_servinfo4() 1541 p += comp->utf8string_len; in update_servinfo4()
|
H A D | nfs4_recovery.c | 2404 kmem_free(filep->utf8string_val, filep->utf8string_len); in nfs4_free_lost_rqst() 3043 destfp->utf8string_len = srcfp->utf8string_len; in nfs4_save_lost_rqst() 3045 srcfp->utf8string_len = 0; in nfs4_save_lost_rqst()
|
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
H A D | ref_subr.c | 62 str->utf8string_len = 0; in str_to_utf8() 71 str->utf8string_len = 0; in str_to_utf8() 74 str->utf8string_len = len; in str_to_utf8() 96 len = str->utf8string_len; in utf8_to_str() 263 (uint_t *)&objp->utf8string_len, NFS4_MAX_UTF8STRING)); in xdr_utf8string()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/nfs/ |
H A D | idmap.c | 50 s = mdb_alloc(idmap.id_str.utf8string_len + 1, UM_NOSLEEP | UM_GC); in nfs4_idmap_dcmd() 51 if (s == NULL || mdb_readstr(s, idmap.id_str.utf8string_len + 1, in nfs4_idmap_dcmd()
|
/illumos-gate/usr/src/uts/common/nfs/ |
H A D | nfs4_idmap_impl.h | 55 #define id_len id_str.utf8string_len
|
H A D | nfs4.h | 1169 kmem_free((str).utf8string_val, (str).utf8string_len); \ 1171 (str).utf8string_len = 0; \
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/nfs/ |
H A D | tst.call.c | 77 args.tag.utf8string_len = strlen(tag); in dotest()
|
/illumos-gate/usr/src/cmd/fs.d/nfs/tests/rpcsec_gss_conn/ |
H A D | rpcsec_gss_conn.c | 147 args.tag.utf8string_len = strlen(tag); in main()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | nfs4_xdr.c | 135 (uint_t *)&objp->utf8string_len, NFS4_MAX_UTF8STRING)) in xdr_utf8string() 354 objp->who.utf8string_len = 0; in xdr_nfsace4() 357 (uint_t *)&objp->who.utf8string_len, in xdr_nfsace4()
|