View | Details | Raw Unified | Return to bug 12939
Collapse All | Expand All

(-)quota.1 (+14 lines)
Lines 43-56 Link Here
43
.Nd display disk usage and limits
43
.Nd display disk usage and limits
44
.Sh SYNOPSIS
44
.Sh SYNOPSIS
45
.Nm quota
45
.Nm quota
46
.Op Fl l
46
.Op Fl g
47
.Op Fl g
47
.Op Fl u
48
.Op Fl u
48
.Op Fl v | Fl q
49
.Op Fl v | Fl q
49
.Nm quota
50
.Nm quota
51
.Op Fl l
50
.Op Fl u
52
.Op Fl u
51
.Op Fl v | Fl q
53
.Op Fl v | Fl q
52
.Ar user
54
.Ar user
53
.Nm quota
55
.Nm quota
56
.Op Fl l
54
.Op Fl g
57
.Op Fl g
55
.Op Fl v | Fl q
58
.Op Fl v | Fl q
56
.Ar group
59
.Ar group
Lines 76-81 Link Here
76
Print a more terse message,
79
Print a more terse message,
77
containing only information
80
containing only information
78
on filesystems where usage is over quota.
81
on filesystems where usage is over quota.
82
.It Fl l
83
.Nm Quota
84
will not report quotas on filesystems mounted via
85
.Nm NFS .
79
.El
86
.El
80
.Pp
87
.Pp
81
Specifying both
88
Specifying both
Lines 119-124 Link Here
119
.Nm
126
.Nm
120
exits with a non-zero status, one or more filesystems
127
exits with a non-zero status, one or more filesystems
121
are over quota.
128
are over quota.
129
.Pp
130
If the
131
.Fl l
132
flag is specified,
133
.Nm
134
will not check filesystems mounted via
135
.Nm NFS
122
.Sh FILES
136
.Sh FILES
123
.Bl -tag -width quota.group -compact
137
.Bl -tag -width quota.group -compact
124
.It Pa quota.user
138
.It Pa quota.user
(-)quota.c (-1 / +7 lines)
Lines 107-112 Link Here
107
107
108
int	qflag;
108
int	qflag;
109
int	vflag;
109
int	vflag;
110
int	lflag;
110
111
111
int
112
int
112
main(argc, argv)
113
main(argc, argv)
Lines 118-124 Link Here
118
	int i, gflag = 0, uflag = 0;
119
	int i, gflag = 0, uflag = 0;
119
	char ch;
120
	char ch;
120
121
121
	while ((ch = getopt(argc, argv, "ugvq")) != -1) {
122
	while ((ch = getopt(argc, argv, "ugvql")) != -1) {
122
		switch(ch) {
123
		switch(ch) {
123
		case 'g':
124
		case 'g':
124
			gflag++;
125
			gflag++;
Lines 132-137 Link Here
132
		case 'q':
133
		case 'q':
133
			qflag++;
134
			qflag++;
134
			break;
135
			break;
136
		case 'l':
137
			lflag++;
138
			break;
135
		default:
139
		default:
136
			usage();
140
			usage();
137
		}
141
		}
Lines 471-476 Link Here
471
				errx(2, "out of memory");
475
				errx(2, "out of memory");
472
		}
476
		}
473
		if (strcmp(fst[i].f_fstypename, "nfs") == 0) {
477
		if (strcmp(fst[i].f_fstypename, "nfs") == 0) {
478
			if (lflag)
479
				continue;
474
			if (getnfsquota(&fst[i], NULL, qup, id, quotatype)
480
			if (getnfsquota(&fst[i], NULL, qup, id, quotatype)
475
			    == 0)
481
			    == 0)
476
				continue;
482
				continue;

Return to bug 12939