Home | History | Annotate | Download | only in quota

Lines Matching refs:qup

322 	struct quotause *qup;
328 for (qup = quplist; qup; qup = qup->next) {
329 showonequota(idtype, idtypename, id, idname, qup);
339 struct quotause *qup)
346 qvs = qup->qvs;
347 numqvs = qup->numqvs;
360 quota_idtype_getname(qup->qh, i),
364 printf("\t%s %s\n", msg, qup->fsname);
392 if (strlen(qup->fsname) > 4) {
393 printf("%s\n", qup->fsname);
396 printf("%12s", qup->fsname);
401 quota_objtype_isbytes(qup->qh, i), now);
481 struct quotause *qup, *quptail;
488 qup = quphead = quptail = NULL;
494 if (qup == NULL) {
495 if ((qup = malloc(sizeof *qup)) == NULL)
498 qup->qh = quota_open(fst[i].f_mntonname);
499 if (qup->qh == NULL) {
505 qup->numqvs = quota_getnumidtypes(qup->qh);
506 qup->qvs = malloc(qup->numqvs * sizeof(qup->qvs[0]));
507 if (qup->qvs == NULL) {
516 for (j=0; j<qup->numqvs; j++) {
518 if (quota_get(qup->qh, &qk, &qup->qvs[j]) < 0) {
523 quotaval_clear(&qup->qvs[j]);
526 (void)strlcpy(qup->fsname, fst[i].f_mntonname,
527 sizeof(qup->fsname));
529 quphead = qup;
531 quptail->next = qup;
532 quptail = qup;
534 qup = NULL;
536 free(qup);