1 .\" $NetBSD: quotacheck.8,v 1.16 2004/01/05 17:43:44 christos Exp $
3 .\" Copyright (c) 1983, 1990, 1991, 1993
4 .\" The Regents of the University of California. All rights reserved.
6 .\" This code is derived from software contributed to Berkeley by
7 .\" Robert Elz at The University of Melbourne.
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\" notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\" notice, this list of conditions and the following disclaimer in the
16 .\" documentation and/or other materials provided with the distribution.
17 .\" 3. Neither the name of the University nor the names of its contributors
18 .\" may be used to endorse or promote products derived from this software
19 .\" without specific prior written permission.
21 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 .\" @(#)quotacheck.8 8.1 (Berkeley) 6/5/93
40 .Nd filesystem quota consistency checker
47 .Op Fl l Ar maxparallel
51 examines each filesystem,
52 builds a table of current disk usage,
53 and compares this table against that recorded
54 in the disk quota file for the filesystem.
55 If any inconsistencies are detected, both the
56 quota file and the current system copy of the
57 incorrect quotas are updated (the latter only
58 occurs if an active filesystem is checked).
59 By default both user and group quotas are checked.
66 flag is supplied in place of any filesystem names,
68 will check all the filesystems indicated in
70 to be read-write with disk quotas.
71 By default only the types of quotas listed in
77 Only group quotas listed in
82 .It Fl l Ar maxparallel
83 Limit the number of parallel checks to the number specified in
84 the following argument.
85 By default, the limit is the number of disks, running one process
87 If a smaller limit is given, the disks are checked round-robin,
88 one file system at a time.
89 This option is only valid with
94 particularly on systems with sparse user id usage,
95 but fails to correct quotas for users [groups]
96 not in the system user [group] database,
97 and owning no files on the filesystem,
98 if the quota file incorrectly believes that they do.
100 Only user quotas listed in
108 and reports corrected discrepancies between the
109 calculated and recorded disk quotas.
116 is equivalent to the default.
117 Parallel passes are run on the filesystems required,
118 using the pass numbers in
120 in an identical fashion to
128 expects each filesystem to be checked to have a
133 which are located at the root of the associated file system.
134 These defaults may be overridden in
136 If a file is not present,
141 is normally run at boot time from the
145 before enabling disk quotas with
149 accesses the raw device in calculating the actual
150 disk usage for each user.
151 Thus, the filesystems
152 checked should be quiescent while
165 a line will be written to the standard error output indicating
166 the name of the device currently being checked and progress information.
168 .Bl -tag -width quota.group -compact
170 at the filesystem root with user quotas
172 at the filesystem root with group quotas