Lines Matching defs:sid

44  * - variable length sid - max = 32 bytes
45 * SMB_QUOTA_SIZE_NO_SID is the size of the above, excluding the sid.
59 * Otherwise (type SMB_QUOTA_QUERY_ALL) find the resume sid
61 * resume sid to NULL if request->qq_restart.
69 smb_quota_sid_t *sid;
86 sid = kmem_zalloc(sizeof (smb_quota_sid_t), KM_SLEEP);
87 list_insert_tail(sid_list, sid);
88 smb_ofile_get_quota_resume(ofile, sid->qs_sidstr,
90 if (*sid->qs_sidstr == '\0')
109 smb_quota_sid_t *sid;
113 while ((sid = list_head(sid_list)) != NULL) {
114 list_remove(sid_list, sid);
115 kmem_free(sid, sizeof (smb_quota_sid_t));
125 * Eaxh sid entry comprises:
127 * sid length (4 bytes)
128 * sid (variable length = sidlen)
138 smb_sid_t *sid;
161 sid = smb_decode_sid(mbc, sid_offset);
162 if (sid == NULL) {
168 smb_sid_tostr(sid, qsid->qs_sidstr);
169 smb_sid_free(sid);
170 sid = NULL;
183 * is returned for each sid in the sidlist. request->qr_max_quota
208 * excluding the sid.
219 smb_sid_t *sid;
247 sid = smb_decode_sid(mbc, sid_offset);
248 if (sid == NULL) {
255 smb_sid_tostr(sid, quota->q_sidstr);
256 smb_sid_free(sid);
257 sid = NULL;
287 * excluding the sid.
289 * Sets the last encoded SID as the resume sid.
298 smb_sid_t *sid;
310 if ((sid = smb_sid_fromstr(sidstr)) == NULL) {
315 sidlen = smb_sid_len(sid);
322 smb_sid_free(sid);
334 smb_encode_sid(mbc, sid);
338 smb_sid_free(sid);
363 * Find the user's sid, insert it in the sidlist of a
372 smb_sid_t *sid;
381 if (smb_idmap_getsid(uid, SMB_IDMAP_USER, &sid) != IDMAP_SUCCESS)
384 smb_sid_tostr(sid, qsid.qs_sidstr);
385 smb_sid_free(sid);