Document the -l option.
Reviewed by: brd Approved by: ru (mentor)
This commit is contained in:
parent
8064e5d71f
commit
bbb83feb32
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=164071
@ -31,7 +31,7 @@
|
|||||||
.\" @(#)quotacheck.8 8.1 (Berkeley) 6/5/93
|
.\" @(#)quotacheck.8 8.1 (Berkeley) 6/5/93
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd June 5, 1993
|
.Dd November 7, 2006
|
||||||
.Dt QUOTACHECK 8
|
.Dt QUOTACHECK 8
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -40,6 +40,7 @@
|
|||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Nm
|
.Nm
|
||||||
.Op Fl guv
|
.Op Fl guv
|
||||||
|
.Op Fl l Ar maxrun
|
||||||
.Fl a
|
.Fl a
|
||||||
.Nm
|
.Nm
|
||||||
.Op Fl guv
|
.Op Fl guv
|
||||||
@ -72,6 +73,13 @@ are checked.
|
|||||||
Only group quotas listed in
|
Only group quotas listed in
|
||||||
.Pa /etc/fstab
|
.Pa /etc/fstab
|
||||||
are to be checked.
|
are to be checked.
|
||||||
|
.It Fl l Ar maxrun
|
||||||
|
Specifies the maximum number of concurrent file systems
|
||||||
|
to check in parallel.
|
||||||
|
If this option is omitted, or if
|
||||||
|
.Ar maxrun
|
||||||
|
is zero, parallel passes are run as per
|
||||||
|
.Xr fsck 8 .
|
||||||
.It Fl u
|
.It Fl u
|
||||||
Only user quotas listed in
|
Only user quotas listed in
|
||||||
.Pa /etc/fstab
|
.Pa /etc/fstab
|
||||||
|
@ -192,6 +192,12 @@ main(argc, argv)
|
|||||||
(void) addid((u_long)pw->pw_uid, USRQUOTA, pw->pw_name);
|
(void) addid((u_long)pw->pw_uid, USRQUOTA, pw->pw_name);
|
||||||
endpwent();
|
endpwent();
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
|
* Setting maxrun (-l) makes no sense without the -a flag.
|
||||||
|
* Historically this was never an error, so we just warn.
|
||||||
|
*/
|
||||||
|
if (maxrun > 0 && !aflag)
|
||||||
|
warnx("ignoring -l without -a");
|
||||||
if (aflag)
|
if (aflag)
|
||||||
exit(checkfstab(1, maxrun, needchk, chkquota));
|
exit(checkfstab(1, maxrun, needchk, chkquota));
|
||||||
if (setfsent() == 0)
|
if (setfsent() == 0)
|
||||||
@ -217,7 +223,7 @@ void
|
|||||||
usage()
|
usage()
|
||||||
{
|
{
|
||||||
(void)fprintf(stderr, "%s\n%s\n",
|
(void)fprintf(stderr, "%s\n%s\n",
|
||||||
"usage: quotacheck [-guv] -a",
|
"usage: quotacheck [-guv] [-l maxrun] -a",
|
||||||
" quotacheck [-guv] filesystem ...");
|
" quotacheck [-guv] filesystem ...");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user