Commit | Line | Data |
---|---|---|
22a407fe KM |
1 | .\" Copyright (c) 1983 Regents of the University of California. |
2 | .\" All rights reserved. The Berkeley software License Agreement | |
3 | .\" specifies the terms and conditions for redistribution. | |
4 | .\" | |
15a0b930 | 5 | .\" @(#)quotacheck.8 6.2 (Berkeley) %G% |
22a407fe | 6 | .\" |
9d270264 | 7 | .TH QUOTACHECK 8 "" |
22a407fe KM |
8 | .UC 5 |
9 | .SH NAME | |
10 | quotacheck \- file system quota consistency checker | |
11 | .SH SYNOPSIS | |
12 | .B /etc/quotacheck | |
13 | [ | |
14 | .B \-v | |
15a0b930 S |
15 | ] [ |
16 | .B \-p | |
22a407fe KM |
17 | ] |
18 | filesystem... | |
19 | .br | |
20 | .B /etc/quotacheck | |
21 | [ | |
22 | .B \-v | |
15a0b930 S |
23 | ] [ |
24 | .B \-p | |
22a407fe KM |
25 | ] |
26 | .B \-a | |
27 | .SH DESCRIPTION | |
28 | .I Quotacheck | |
29 | examines each file system, | |
30 | builds a table of current disc usage, | |
31 | and compares this table against that stored | |
32 | in the disc quota file for the file system. | |
33 | If any inconsistencies are detected, both the | |
34 | quota file and the current system copy of the | |
35 | incorrect quotas are updated (the latter only | |
36 | occurs if an active file system is checked). | |
37 | .PP | |
38 | If the | |
39 | .B \-a | |
40 | flag is supplied in place of any file system | |
41 | names, | |
42 | .I quotacheck | |
43 | will check all the file systems indicated in | |
44 | .I /etc/fstab | |
45 | to be read-write with disc quotas. | |
46 | .PP | |
47 | Normally | |
48 | .I quotacheck | |
49 | reports only those quotas modified. If the | |
50 | .B \-v | |
51 | option is supplied, | |
52 | .I quotacheck | |
53 | will indicate the calculated disc quotas for each | |
54 | user on a particular file system. | |
55 | .PP | |
15a0b930 S |
56 | If the |
57 | .B \-p | |
58 | flag is supplied then parallel passes will be run on | |
59 | the filesystems required, using the pass numbers in | |
60 | /etc/fstab in an identical fashion to | |
61 | .IR fsck (8). | |
62 | .PP | |
22a407fe KM |
63 | .I Quotacheck |
64 | expects each file system to be checked to have a | |
65 | quota file named | |
66 | .I quotas | |
67 | in the root directory. If none is present, | |
68 | .I quotacheck | |
69 | will ignore the file system. | |
70 | .PP | |
71 | .I Quotacheck | |
72 | is normally run at boot time from the | |
73 | .I /etc/rc.local | |
74 | file, see | |
75 | .IR rc (8), | |
76 | before enabling disc quotas with | |
77 | .IR quotaon (8). | |
78 | .PP | |
79 | .I Quotacheck | |
80 | accesses the raw device in calculating the actual | |
81 | disc usage for each user. Thus, the file systems | |
82 | checked should be quiescent while | |
83 | .I quotacheck | |
84 | is running. | |
85 | .SH FILES | |
86 | .DT | |
87 | /etc/fstab default file systems | |
88 | .SH "SEE ALSO" | |
15a0b930 | 89 | quota(2), setquota(2), quotaon(8), fsck(8) |