quotacheck

Hurricane Electric Internet Services: Accounts starting at $9.95/month
Hurricane Electric Internet Services

NAME

       quotacheck - scan a file system for disk usages


SYNOPSIS

       quotacheck [-g] [-u] [-v] -a
       quotacheck [-g] [-u] [-v] filesys ...


DESCRIPTION

       Quotacheck  performs a filesystems scan for usage of files
       and directories, used by either user or group. The  output
       is  the  quota  file  for the corresponding filesystem. By
       default the names for these files are:
       -  A user scan: quota.user
       -  A group scan: quota.group

       The resulting file consist of a struct dqblk for each pos-
       sible  id  up  to the highest existing uid or gid and con-
       tains the values for the disk file  and  block  usage  and
       possibly  excess  time for these values. ( for definitions
       of struct dqblk see <linux/quota.h> )

       Quotacheck should be run each time the  system  boots  and
       mounts  non-valid  file  systems.   This is most likely to
       happen after a system crash.

       The speed of the scan decrease with the amount of directo-
       ries  increasing.  The time needed doubles when disk usage
       is doubled as well. A 100 MB partition  used  for  94%  is
       scanned  in  1  minute, the same partition used for 50% is
       done in 25 seconds.


OPTIONS

       -v     This way the program will give some usefull  infor-
              mation  about  what  it  is  doing, plus some fancy
              stuff.

       -d     This means debug. It will result in a lot of infor-
              mation  which can be used in debugging the program.
              The output is very verbose and the scan will not be
              fast.

       -u     This flag tells the program to scan the disk and to
              count the files and directories used by  a  certain
              uid. This is the default action.

       -g     This flag forces the program to count the the files
              and directories used by a certain gid.


NOTE

       Checkquota should only be run  as  Super  User.  Non-priv-
       ilidged  users  are presumably not allowed to read all the
       directories on the given file system.



SEE ALSO

       quota(1), quotactl(2), fstab(5), quotaon(8),  quotaoff(8),
       edquota(8),  repquota(8),  fsck(8),  efsck(8),  e2fsck(8),
       xfsck(8)


FILES

       quota.user, quota.group, /etc/fstab


AUTHOR

       Edvard Tuinder <v892231@si.hhs.nl> <ed@delirium.ow.org>
       Marco   van   Wieringen   <v892273@si.hhs.nl>   <mvw@plan-
       ets.ow.org>
Hurricane Electric Internet Services: Accounts starting at $9.95/month
Hurricane Electric Internet Services
Copyright (C) 1998 Hurricane Electric. All Rights Reserved.