xref: /titanic_52/usr/src/man/man1m/quotacheck.1m (revision bde2df36223c26750e6e5e801907d885e088ee30)
te
Copyright 1989 AT&T Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
QUOTACHECK 1M "Jul 31, 1998"
NAME
quotacheck - ufs file system quota consistency checker
SYNOPSIS

quotacheck [-fp] [-v] filesystem...

quotacheck -a [-fpv]
DESCRIPTION

quotacheck examines each mounted ufs file system, builds a table of current disk usage, and compares this table against the information stored in the file system's disk quota file. If any inconsistencies are detected, both the quota file and the current system copy of the incorrect quotas are updated.

filesystem is either a file system mount point or the block device on which the file system resides.

quotacheck expects each file system to be checked to have a quota file named quotas in the root directory. If none is present, quotacheck will not check the file system.

quotacheck accesses the character special device in calculating the actual disk usage for each user. Thus, the file systems that are checked should be quiescent while quotacheck is running.

OPTIONS

The following options are supported: -a

Check the file systems which /etc/mnttab indicates are ufs file systems. These file systems must be read-write mounted with disk quotas enabled, and have an rq entry in the mntopts field in /etc/vfstab.

-f

Force check on file systems with logging enabled. Use in combination with the -p option.

-p

Check quotas of file systems in parallel. For file systems with logging enabled, no check is performed unless the -f option is also specified.

-v

Indicate the calculated disk quotas for each user on a particular file system. quotacheck normally reports only those quotas modified.

USAGE

See largefile(5) for the description of the behavior of quotacheck when encountering files greater than or equal to 2 Gbyte ( 2^31 bytes).

FILES
/etc/mnttab

Mounted file systems

/etc/vfstab

List of default parameters for each file system

SEE ALSO

edquota(1M), quota(1M), quotaon(1M), repquota(1M), attributes(5), largefile(5), quotactl(7I), mount_ufs(1M)