From 5b3bc06799176f696bb45e84930ed0efca950834 Mon Sep 17 00:00:00 2001 From: jkar8572 Date: Tue, 19 Jul 2005 15:09:07 +0000 Subject: quota(1) now shows grace time even if hardlimit is reached (Jan Kara) Added option to quota(1) to not wrap lines when device name is long (Jan Kara) --- Changelog | 2 ++ doc/quotadoc.sgml | 7 +++---- quota.1 | 12 +++++++++--- quota.c | 20 ++++++++++++-------- 4 files changed, 26 insertions(+), 15 deletions(-) diff --git a/Changelog b/Changelog index 795bb28..37b22c7 100644 --- a/Changelog +++ b/Changelog @@ -1,5 +1,7 @@ Changes in quota-tools from 3.13 to 3.14 * implemented nicer message formatting for warnquota(8) (Jan Kara) +* quota(1) has -w option to supress line wrapping for long device names (Jan Kara) +* quota(1) prints grace time even if hard limit is reached (Jan Kara) Changes in quota-tools from 3.12 to 3.13 * fixed mistakes in several error messages, improved error reporting functions diff --git a/doc/quotadoc.sgml b/doc/quotadoc.sgml index 14ffc28..ff724bd 100644 --- a/doc/quotadoc.sgml +++ b/doc/quotadoc.sgml @@ -67,10 +67,9 @@ file with quota information) and For each filesystem with quotas you have to have files with quota data. The name of these quota files depends on dq_h->qh_quotadev) > 15) + if (strlen(q->dq_h->qh_quotadev) > 15 && !(flags & FL_NOWRAP)) printf("%s\n%15s", q->dq_h->qh_quotadev, ""); else printf("%15s", q->dq_h->qh_quotadev); @@ -250,14 +254,14 @@ int showquotas(int type, qid_t id) space2str(q->dq_dqb.dqb_bsoftlimit, numbuf[1], !!(flags & FL_SMARTSIZE)); space2str(q->dq_dqb.dqb_bhardlimit, numbuf[2], !!(flags & FL_SMARTSIZE)); printf(" %7s%c %6s %7s %7s", numbuf[0], bover ? '*' : ' ', numbuf[1], - numbuf[2], bover > 1 ? timebuf : ""); + numbuf[2], bover ? timebuf : ""); if (iover) difftime2str(q->dq_dqb.dqb_itime, timebuf); number2str(q->dq_dqb.dqb_curinodes, numbuf[0], !!(flags & FL_SMARTSIZE)); number2str(q->dq_dqb.dqb_isoftlimit, numbuf[1], !!(flags & FL_SMARTSIZE)); number2str(q->dq_dqb.dqb_ihardlimit, numbuf[2], !!(flags & FL_SMARTSIZE)); printf(" %7s%c %6s %7s %7s\n", numbuf[0], iover ? '*' : ' ', numbuf[1], - numbuf[2], iover > 1 ? timebuf : ""); + numbuf[2], iover ? timebuf : ""); continue; } } -- cgit v1.2.3