summaryrefslogtreecommitdiff
path: root/quota.c
diff options
context:
space:
mode:
authorjkar8572 <jkar8572>2009-10-20 01:15:39 +0000
committerjkar8572 <jkar8572>2009-10-20 01:15:39 +0000
commitfafc3de3d0a002e8e1a02df12f2788602de6bb60 (patch)
treedd490d1d8dd58af3349babdb3a86c0480379e723 /quota.c
parent5244d768e5f9f4b245ca269ecc976cbc7aaba266 (diff)
downloadlinuxquota-fafc3de3d0a002e8e1a02df12f2788602de6bb60.tar.gz
Improved header of quota and repquota headers in case -s option is used.
Diffstat (limited to 'quota.c')
-rw-r--r--quota.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/quota.c b/quota.c
index a96c0df..635aca3 100644
--- a/quota.c
+++ b/quota.c
@@ -34,7 +34,7 @@
#ident "$Copyright: (c) 1980, 1990 Regents of the University of California. $"
#ident "$Copyright: All rights reserved. $"
-#ident "$Id: quota.c,v 1.27 2008/04/21 15:37:42 jkar8572 Exp $"
+#ident "$Id: quota.c,v 1.28 2009/10/20 01:15:39 jkar8572 Exp $"
/*
* Disk quota reporting program.
@@ -112,11 +112,18 @@ void usage(void)
void heading(int type, qid_t id, char *name, char *tag)
{
+ char *spacehdr;
+
+ if (flags & FL_SMARTSIZE)
+ spacehdr = _("space");
+ else
+ spacehdr = _("blocks");
+
printf(_("Disk quotas for %s %s (%cid %u): %s\n"), type2name(type),
name, *type2name(type), (uint) id, tag);
if (!(flags & FL_QUIET) && !tag[0]) {
printf("%15s%8s %7s%8s%8s%8s %7s%8s%8s\n", _("Filesystem"),
- _("blocks"), _("quota"), _("limit"), _("grace"),
+ spacehdr,_("quota"), _("limit"), _("grace"),
_("files"), _("quota"), _("limit"), _("grace"));
}
}