summaryrefslogtreecommitdiffstats
path: root/sbin/quotacheck
diff options
context:
space:
mode:
authorceri <ceri@FreeBSD.org>2006-11-07 19:07:52 +0000
committerceri <ceri@FreeBSD.org>2006-11-07 19:07:52 +0000
commit1e65ce591f8a8716142afedc78ae40258a205529 (patch)
tree2dcc00bdd2995236044057e7f9358b9946d7e99b /sbin/quotacheck
parentf4782279b7cf92b6d32fc109acc82f9db76727e1 (diff)
downloadFreeBSD-src-1e65ce591f8a8716142afedc78ae40258a205529.zip
FreeBSD-src-1e65ce591f8a8716142afedc78ae40258a205529.tar.gz
Document the -l option.
Reviewed by: brd Approved by: ru (mentor)
Diffstat (limited to 'sbin/quotacheck')
-rw-r--r--sbin/quotacheck/quotacheck.810
-rw-r--r--sbin/quotacheck/quotacheck.c8
2 files changed, 16 insertions, 2 deletions
diff --git a/sbin/quotacheck/quotacheck.8 b/sbin/quotacheck/quotacheck.8
index 0eb3eb8..28ed80b 100644
--- a/sbin/quotacheck/quotacheck.8
+++ b/sbin/quotacheck/quotacheck.8
@@ -31,7 +31,7 @@
.\" @(#)quotacheck.8 8.1 (Berkeley) 6/5/93
.\" $FreeBSD$
.\"
-.Dd June 5, 1993
+.Dd November 7, 2006
.Dt QUOTACHECK 8
.Os
.Sh NAME
@@ -40,6 +40,7 @@
.Sh SYNOPSIS
.Nm
.Op Fl guv
+.Op Fl l Ar maxrun
.Fl a
.Nm
.Op Fl guv
@@ -72,6 +73,13 @@ are checked.
Only group quotas listed in
.Pa /etc/fstab
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
Only user quotas listed in
.Pa /etc/fstab
diff --git a/sbin/quotacheck/quotacheck.c b/sbin/quotacheck/quotacheck.c
index 634124e..b0a7df9 100644
--- a/sbin/quotacheck/quotacheck.c
+++ b/sbin/quotacheck/quotacheck.c
@@ -192,6 +192,12 @@ main(argc, argv)
(void) addid((u_long)pw->pw_uid, USRQUOTA, pw->pw_name);
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)
exit(checkfstab(1, maxrun, needchk, chkquota));
if (setfsent() == 0)
@@ -217,7 +223,7 @@ void
usage()
{
(void)fprintf(stderr, "%s\n%s\n",
- "usage: quotacheck [-guv] -a",
+ "usage: quotacheck [-guv] [-l maxrun] -a",
" quotacheck [-guv] filesystem ...");
exit(1);
}
OpenPOWER on IntegriCloud