FreeBSD Bugzilla – Attachment 5401 Details for
Bug 12939
add flag to quota to suppress NFS quota checks
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.49 KB, created by
nbm
on 1999-08-03 11:20:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
nbm
Created:
1999-08-03 11:20:01 UTC
Size:
1.49 KB
patch
obsolete
>--- quota.1.orig Mon Aug 2 10:34:42 1999 >+++ quota.1 Tue Aug 3 10:52:25 1999 >@@ -43,14 +43,17 @@ > .Nd display disk usage and limits > .Sh SYNOPSIS > .Nm quota >+.Op Fl l > .Op Fl g > .Op Fl u > .Op Fl v | Fl q > .Nm quota >+.Op Fl l > .Op Fl u > .Op Fl v | Fl q > .Ar user > .Nm quota >+.Op Fl l > .Op Fl g > .Op Fl v | Fl q > .Ar group >@@ -76,6 +79,10 @@ > Print a more terse message, > containing only information > on filesystems where usage is over quota. >+.It Fl l >+.Nm Quota >+will not report quotas on filesystems mounted via >+.Nm NFS . > .El > .Pp > Specifying both >@@ -119,6 +126,13 @@ > .Nm > exits with a non-zero status, one or more filesystems > are over quota. >+.Pp >+If the >+.Fl l >+flag is specified, >+.Nm >+will not check filesystems mounted via >+.Nm NFS > .Sh FILES > .Bl -tag -width quota.group -compact > .It Pa quota.user >--- quota.c.orig Mon Aug 2 10:34:38 1999 >+++ quota.c Mon Aug 2 10:44:46 1999 >@@ -107,6 +107,7 @@ > > int qflag; > int vflag; >+int lflag; > > int > main(argc, argv) >@@ -118,7 +119,7 @@ > int i, gflag = 0, uflag = 0; > char ch; > >- while ((ch = getopt(argc, argv, "ugvq")) != -1) { >+ while ((ch = getopt(argc, argv, "ugvql")) != -1) { > switch(ch) { > case 'g': > gflag++; >@@ -132,6 +133,9 @@ > case 'q': > qflag++; > break; >+ case 'l': >+ lflag++; >+ break; > default: > usage(); > } >@@ -471,6 +475,8 @@ > errx(2, "out of memory"); > } > if (strcmp(fst[i].f_fstypename, "nfs") == 0) { >+ if (lflag) >+ continue; > if (getnfsquota(&fst[i], NULL, qup, id, quotatype) > == 0) > continue;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 12939
: 5401