cvs diff: Diffing . Index: repquota.8 =================================================================== RCS file: /home/ncvs/src/usr.sbin/repquota/repquota.8,v retrieving revision 1.11 diff -u -r1.11 repquota.8 --- repquota.8 7 Aug 2004 04:28:54 -0000 1.11 +++ repquota.8 4 Jan 2005 17:06:15 -0000 @@ -31,7 +31,7 @@ .\" @(#)repquota.8 8.1 (Berkeley) 6/6/93 .\" $FreeBSD: src/usr.sbin/repquota/repquota.8,v 1.11 2004/08/07 04:28:54 imp Exp $ .\" -.Dd June 6, 1993 +.Dd January 4, 2005 .Dt REPQUOTA 8 .Os .Sh NAME @@ -43,12 +43,14 @@ .Op Fl n .Op Fl u .Op Fl v +.Op Fl z .Ar filesystem Ar ... .Nm .Op Fl g .Op Fl n .Op Fl u .Op Fl v +.Op Fl z .Fl a .Sh DESCRIPTION The @@ -72,6 +74,11 @@ group and user quotas if they exist). .It Fl v Print a header line before printing each file system quotas. +.It Fl z +Print information on a user or group even if that user or group has no +allocated storage. +By default, repquota will only display users or groups who have allocated +storage, even if there is a quota present for the user or group. .El .Pp For each user or group, the current Index: repquota.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/repquota/repquota.c,v retrieving revision 1.19 diff -u -r1.19 repquota.c --- repquota.c 19 Dec 2004 18:02:45 -0000 1.19 +++ repquota.c 4 Jan 2005 17:04:49 -0000 @@ -93,6 +93,7 @@ int vflag; /* verbose */ int aflag; /* all filesystems */ int nflag; /* display user/group by id */ +int zflag; /* display even if users have zero storage */ int hasquota(struct fstab *, int, char **); int oneof(char *, char *[], int); @@ -127,6 +128,9 @@ case 'v': vflag++; break; + case 'z': + zflag++; + break; default: usage(); } @@ -221,7 +225,8 @@ fread(&dqbuf, sizeof(struct dqblk), 1, qf); if (feof(qf)) break; - if (dqbuf.dqb_curinodes == 0 && dqbuf.dqb_curblocks == 0) + if (zflag == 0 && (dqbuf.dqb_curinodes == 0 && + dqbuf.dqb_curblocks == 0)) continue; if ((fup = lookup(id, type)) == 0) fup = addid(id, type, (char *)0); @@ -236,8 +241,8 @@ fup = lookup(id, type); if (fup == 0) continue; - if (fup->fu_dqblk.dqb_curinodes == 0 && - fup->fu_dqblk.dqb_curblocks == 0) + if (zflag == 0 && (fup->fu_dqblk.dqb_curinodes == 0 && + fup->fu_dqblk.dqb_curblocks == 0)) continue; printf("%-*s ", max(UT_NAMESIZE,10), fup->fu_name); printf("%c%c %8lu %8lu %8lu %6s",