• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/diskdev_cmds-576/quota.tproj/

Lines Matching defs:qup

319 	register struct quotause *qup;
328 for (qup = quplist; qup; qup = qup->next) {
330 qup->dqblk.dqb_isoftlimit == 0 &&
331 qup->dqblk.dqb_ihardlimit == 0 &&
332 qup->dqblk.dqb_bsoftlimit == 0 &&
333 qup->dqblk.dqb_bhardlimit == 0)
336 if (qup->dqblk.dqb_ihardlimit &&
337 qup->dqblk.dqb_curinodes >= qup->dqblk.dqb_ihardlimit) {
339 } else if (qup->dqblk.dqb_isoftlimit &&
340 qup->dqblk.dqb_curinodes >= qup->dqblk.dqb_isoftlimit) {
341 if (qup->dqblk.dqb_itime > now) {
349 if (qup->dqblk.dqb_bhardlimit &&
350 qup->dqblk.dqb_curbytes >= qup->dqblk.dqb_bhardlimit) {
352 } else if (qup->dqblk.dqb_bsoftlimit &&
353 qup->dqblk.dqb_curbytes >= qup->dqblk.dqb_bsoftlimit) {
354 if (qup->dqblk.dqb_btime > now) {
361 if (qup->dqblk.dqb_bhardlimit &&
362 qup->dqblk.dqb_curblocks >= qup->dqblk.dqb_bhardlimit) {
364 } else if (qup->dqblk.dqb_bsoftlimit &&
365 qup->dqblk.dqb_curblocks >= qup->dqblk.dqb_bsoftlimit) {
366 if (qup->dqblk.dqb_btime > now) {
379 printf("\t%s %s\n", msgi, qup->fsname);
381 printf("\t%s %s\n", msgb, qup->fsname);
386 qup->dqblk.dqb_curbytes ||
387 qup->dqblk.dqb_curinodes) {
392 , qup->fsname
393 , qup->dqblk.dqb_curbytes / 1024
395 , qup->dqblk.dqb_bsoftlimit / 1024
396 , qup->dqblk.dqb_bhardlimit / 1024
398 : timeprt(qup->dqblk.dqb_btime));
401 qup->dqblk.dqb_curblocks ||
402 qup->dqblk.dqb_curinodes) {
407 , qup->fsname
408 , dbtob(qup->dqblk.dqb_curblocks) / 1024
410 , dbtob(qup->dqblk.dqb_bsoftlimit) / 1024
411 , dbtob(qup->dqblk.dqb_bhardlimit) / 1024
413 : timeprt(qup->dqblk.dqb_btime));
416 , qup->dqblk.dqb_curinodes
418 , qup->dqblk.dqb_isoftlimit
419 , qup->dqblk.dqb_ihardlimit
421 : timeprt(qup->dqblk.dqb_itime)
574 register struct quotause *qup, *quptail;
604 if ((qup = (struct quotause *)malloc(sizeof *qup)) == NULL) {
609 bcopy(&dqb, &qup->dqblk, sizeof(dqb));
613 free(qup);
616 if ((error = qflookup(fd, id, quotatype, &qup->dqblk))) {
619 free(qup);
624 strlcpy(qup->fsname, fst[i].f_mntonname, sizeof(qup->fsname));
626 quphead = qup;
628 quptail->next = qup;
629 quptail = qup;
630 qup->next = 0;
643 register struct quotause *qup, *quptail;
656 if ((qup = (struct quotause *)malloc(sizeof *qup)) == NULL) {
660 if (quotactl(fs->fs_file, qcmd, id, &qup->dqblk) != 0) {
663 free(qup);
667 switch (read(fd, &qup->dqblk, sizeof(struct dqblk))) {
673 bzero((caddr_t)&qup->dqblk,
684 free(qup);
689 strlcpy(qup->fsname, fs->fs_file, sizeof(qup->fsname));
691 quphead = qup;
693 quptail->next = qup;
694 quptail = qup;
695 qup->next = 0;