Added quotasanitycheck.8
Changed BINDIR to SBINDIR in GNUmakefile and added MAN8DIR variable.
This commit is contained in:
parent
5757e9c7ed
commit
ee8c47eb35
|
@ -1,5 +1,4 @@
|
|||
include GNUmakevars
|
||||
BINDIR=/usr/local/sbin
|
||||
|
||||
all: quotacheck quotastat quotasanitycheck
|
||||
|
||||
|
@ -9,7 +8,8 @@ clean:
|
|||
distclean: clean
|
||||
rm -f customize
|
||||
|
||||
install: $(BINDIR) $(BINDIR)/quotacheck $(BINDIR)/quotastat $(BINDIR)/quotasanitycheck
|
||||
install: $(SBINDIR) $(SBINDIR)/quotacheck $(SBINDIR)/quotastat \
|
||||
$(SBINDIR)/quotasanitycheck $(MAN8DIR)/quotasanitycheck.8
|
||||
|
||||
%: %.pl customize
|
||||
sh ./customize < $< > $@
|
||||
|
@ -22,7 +22,7 @@ install: $(BINDIR) $(BINDIR)/quotacheck $(BINDIR)/quotastat $(BINDIR)/quotasanit
|
|||
customize: configure
|
||||
sh ./configure
|
||||
|
||||
$(BINDIR):
|
||||
$(SBINDIR):
|
||||
mkdir -p $@
|
||||
|
||||
include GNUmakerules
|
||||
|
|
|
@ -0,0 +1,54 @@
|
|||
.\" $Id: quotasanitycheck.8,v 1.1 1998-09-17 08:15:45 hjp Exp $
|
||||
.\" $Log: quotasanitycheck.8,v $
|
||||
.\" Revision 1.1 1998-09-17 08:15:45 hjp
|
||||
.\" Added quotasanitycheck.8
|
||||
.\" Changed BINDIR to SBINDIR in GNUmakefile and added MAN8DIR variable.
|
||||
.\"
|
||||
.\"
|
||||
.TH quotasanitycheck 1
|
||||
.SH NAME
|
||||
quotasanitycheck - check user quotas for sanity
|
||||
.SH SYNOPSIS
|
||||
.B table
|
||||
[
|
||||
.B -b
|
||||
.I blocks
|
||||
] [
|
||||
.B -f
|
||||
.I files
|
||||
] [
|
||||
.B -F
|
||||
.I factor
|
||||
]
|
||||
.SH DESCRIPTION
|
||||
This program performs some simple tests on quotas of all users and
|
||||
reports the results. Currently these tests are:
|
||||
.IP
|
||||
The soft limit must be at least as high as specified by the
|
||||
.B \-b
|
||||
or
|
||||
.B \-f
|
||||
option (min)
|
||||
.IP
|
||||
The hard limit must be at least as high as the soft limit (softhard)
|
||||
.IP
|
||||
The difference between the hard limit and the current usage must not exceed the fraction of total free space specified by the
|
||||
.B \-F
|
||||
option (hardfree).
|
||||
.SH EXAMPLES
|
||||
.IP
|
||||
.C quotasanitycheck -F 0.5
|
||||
.PP
|
||||
Checks that no user can fill up more than 50% of the available space.
|
||||
.IP
|
||||
.C "quotasanitycheck -b 50000 -f 1000 -F 0.1"
|
||||
.PP
|
||||
Checks each user's soft limits are at least 50MB and 1000 files, and
|
||||
that no user can fill up more than 10% of the available space.
|
||||
.IP
|
||||
.C "quotasanitycheck -b50000 -f1000 -F0.1 | grep FAIL | table -d' '"
|
||||
.PP
|
||||
As above, but prints only the users that fail at least one test and
|
||||
formats the output nicely.
|
||||
.SH AUTHOR
|
||||
Peter Holzer (hjp@wsr.ac.at)
|
Loading…
Reference in New Issue