Lines Matching defs:quota
37 * A user/group quota entry passed over the wire consists of:
41 * - quota used (uint64_t)
42 * - quota limit (uint64_t)
43 * - quota threahold (uint64_t)
182 * If the query is if type SMB_QUOTA_QUERY_SIDLIST a quota entry
186 * max_quota is the maximum number of quota entries requested from
189 * max quota is calculated as the number of quotas of size
206 * Decode the quota entries into a list_t of smb_quota_t.
207 * SMB_QUOTA_SIZE_NO_SID is the size of a quota entry,
220 smb_quota_t *quota;
236 quota = kmem_zalloc(sizeof (smb_quota_t), KM_SLEEP);
240 "a->q_used, "a->q_thresh, "a->q_limit)) {
241 kmem_free(quota, sizeof (smb_quota_t));
249 kmem_free(quota, sizeof (smb_quota_t));
254 bzero(quota->q_sidstr, SMB_SID_STRSZ);
255 smb_sid_tostr(sid, quota->q_sidstr);
259 list_insert_tail(list, quota);
272 smb_quota_t *quota;
274 while ((quota = list_head(list)) != NULL) {
275 list_remove(list, quota);
276 kmem_free(quota, sizeof (smb_quota_t));
285 * Encode the quota entries from a list_t of smb_quota_t.
286 * SMB_QUOTA_SIZE_NO_SID is the size of a quota entry,
300 smb_quota_t *quota, *next_quota;
306 quota = list_head(list);
307 while (quota) {
308 next_quota = list_next(list, quota);
309 sidstr = quota->q_sidstr;
311 quota = next_quota;
332 quota->q_used, quota->q_thresh, quota->q_limit);
346 quota = next_quota;
361 * Get user quota information for a single user (uid)
365 * smb_quota_query() to obtain the quota information.
370 smb_quota_query_user_quota(smb_request_t *sr, uid_t uid, smb_quota_t *quota)
417 bcopy(q, quota, sizeof (smb_quota_t));