Dag-Erling Smørgrav
6cfc1c1e18
type / format fixup
2009-09-27 17:33:26 +00:00
Kirk McKusick
8bd6a3ab4b
Update the quotafile library to manage both active quotas via the
...
quotactl(2) interface and inactive quotas by accessing the quota
files directly.
Update the edquota program to use this new interface as proof of
concept.
2009-02-14 08:08:08 +00:00
Kirk McKusick
916e406eb5
Move hasquota() function to libutil.
2009-02-13 06:12:15 +00:00
Kirk McKusick
cdab8b664d
More updates to edquota based on feedback from Dag-Erling Smorgrav.
2009-02-10 08:09:03 +00:00
Kirk McKusick
b83b5d3b79
Updates to edquota based on feedback from Dag-Erling Smorgrav.
2009-02-05 14:06:43 +00:00
Kirk McKusick
08dc3a5e5c
Finish conversion of edquota to work with 64-bit quotas.
...
Add -h option to request "humanized" values such as 1M, 1G, 1T, etc.
Discussed with: Dag-Erling Smorgrav
Sponsored by: Rsync.net
2009-02-04 00:21:36 +00:00
Dag-Erling Smørgrav
1b3515f39b
WIP
2009-01-30 13:54:03 +00:00
Dag-Erling Smørgrav
8f518424d9
Drag this code kicking and screaming into the twenty-first century.
2008-07-02 15:51:59 +00:00
Mike Pritchard
aecf742ea2
Document that quotas must be turned off on a file system and
...
then turned back on in order for grace time changes to take
effect.
2007-02-04 14:26:01 +00:00
Mike Pritchard
fbb42904c4
If two files systems, /a and /b are marked as having quotas enabled
...
in fstab and they are normally mounted as /a/b, if /b is not mounted,
the various quota utilities will incorrectly operate with the quotas on
/a (silently) when operations are attemted on /b.
Sync up all the hasquota() routines between all the different
quota utilities and change it to detect if the file system we are
attempting to perform quota operations on is not currently mounted
and warn the user accordingly.
PR: bin/38918
2007-02-04 06:33:15 +00:00
Mike Pritchard
dbbc0c8312
If quotas are not currently enabled for a file system, edquota -p
...
will operate directly on the quota file. It will incorrectly write
the prototype user's usage information for each new quota it sets.
Fixed to read in the current quota information and update the
file correctly.
If quotas are enabled the kernel handles this case fine.
PR: bin/15410
2007-02-04 01:41:32 +00:00
Philippe Charnier
606a36b9eb
initialize unitialized variables (WARNS=6)
2006-09-14 04:45:44 +00:00
Ruslan Ermilov
59a3c79da6
Sort sections.
2005-01-18 20:02:45 +00:00
Warner Losh
486c8cc4c6
Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived software
...
(with permission of addtional copyright holders where appropriate)
2004-08-07 04:28:56 +00:00
Ruslan Ermilov
07bfccd71e
Mechanically kill hard sentence breaks.
2004-07-02 23:13:00 +00:00
Maxim Konovalov
b495040835
o Fix typo: s/bslim/bhlim/.
...
PR: docs/67170
Submitted by: Anatoly Zherdev
MFC after: 3 days
2004-05-25 10:43:46 +00:00
Ceri Davies
fc31408d87
Have edquota honour MAXLOGNAME rather than hardcoding the maximum
...
username length to 29 characters.
PR: misc/62944
Submitted by: David Hill <david@wmol.com>
Approved by: ru
MFC after: 1 week
2004-02-24 20:58:16 +00:00
Peter Grehan
5cfe0423e6
Userland signed char fixes for PPC build. Problems were using a char
...
return for getopt() and comparing to -1, ditto with fgetc() and EOF,
and using the kg_nice value from <sys/user.h>
Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
Reviewed by: obrien, bde (a while back)
Tested lightly on: ppc, i386, make universe
2004-01-22 07:23:36 +00:00
Ruslan Ermilov
743d5d518c
mdoc(7): Properly mark C headers.
2003-09-10 19:24:35 +00:00
Yaroslav Tykhiy
da2f008200
Minor grammar, punctuation, and wording fixes
...
for the paragraph on the -e option.
2003-07-29 13:25:56 +00:00
David E. O'Brien
b728350ee6
Use __FBSDID over rcsid[]. Protect copyright[] where needed.
2003-05-03 21:06:42 +00:00
David E. O'Brien
052238b16c
style.Makefile(5)
2003-04-04 17:49:21 +00:00
Ruslan Ermilov
8d5d039f80
Uniformly refer to a file system as "file system".
...
Approved by: re
2002-12-12 17:26:04 +00:00
Ruslan Ermilov
c041c1e0d9
mdoc(7) police: markup fixes.
...
Approved by: re
2002-11-27 15:31:08 +00:00
Maxim Sobolev
b8b743d723
Allow edquota(8) to be used for setting up quotas non-interactively (add a
...
new -e option for that).
Feature requested by: Alex V. Belinsky <fozzy@kievweb.net.ua>
MFC after: 1 month
2002-09-07 12:26:07 +00:00
Jens Schweikhardt
a35d611fbc
Use "kbytes" instead of "blocks" in messages as this is really
...
what is calculated.
PR: 41936
Submitted by: Lukas Ertl <le@univie.ac.at>
MFC after: 1 week
2002-08-24 11:03:48 +00:00
Ian Dowse
c99f3c68a3
Improve the code for detecting UID ranges so that usernames such
...
as "2-xhibit" are not considered as a range. Fix a problem where
the code would forget to increment argv.
PR: misc/15658
2002-08-09 01:21:03 +00:00
Philippe Charnier
490d5836b5
The .Nm utility
2002-07-14 14:47:15 +00:00
Alfred Perlstein
f251a0df8b
WARNS=4
2002-07-11 21:18:55 +00:00
Alfred Perlstein
d89167b4ea
de-__P()
2002-07-11 18:31:16 +00:00
Mike Heffner
28644e448a
Reorder WARNS line for style.
...
Pointed out by: bde
2001-12-10 21:13:36 +00:00
Mike Heffner
d73796c5cf
WARNS=2 cleanup.
...
Submitted by: Maxime Henrion <mux@qualys.com>
MFC after: 2 weeks
2001-12-10 06:05:28 +00:00
Ruslan Ermilov
cda0a584c5
mdoc(7) police: removed whitespace at EOL.
2001-10-01 13:40:31 +00:00
Yaroslav Tykhiy
bc9c1e902f
Add a new option to edquota(8) - "-f", which will
...
allow to limit the prototype quota distribution (-p)
to a single filesystem. Useful when initializing
quotas on a newly added disk.
PR: bin/30816
Submitted by: Dmitry Morozovsky <marck@rinet.ru>
2001-09-28 10:22:36 +00:00
Brian Somers
7bc6d0158f
Fix the type of the NULL arg to execl()
...
Idea from: Theo de Raadt <deraadt@openbsd.org>
2001-07-09 09:24:06 +00:00
Ruslan Ermilov
345e52e742
- Backout botched attempt to introduce MANSECT feature.
...
- MAN[1-9] -> MAN.
2001-03-26 14:42:20 +00:00
Ruslan Ermilov
c73e22c3d4
Set the default manual section for usr.sbin/ to 8.
2001-03-20 18:17:26 +00:00
Ruslan Ermilov
e97407b4f2
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 20:10:44 +00:00
Ruslan Ermilov
726b61ab5f
Avoid use of direct troff requests in mdoc(7) manual pages.
2000-11-10 17:46:15 +00:00
Andrew Gallatin
aa29dffdf8
cleanups of my previous, quick & dirty fix of unaligned access errors on alpha.
...
submitted by: bde
2000-10-28 14:26:23 +00:00
Andrew Gallatin
6a66ff3cd5
fix unaligned access errors caused by bad scanf/printf format strings
...
PR: alpha/21247
tested by: Marcin Gryszkalis <dagoon@rs.math.uni.lodz.pl>
2000-10-26 17:40:14 +00:00
Peter Wemm
97d92980a9
$Id$ -> $FreeBSD$
1999-08-28 01:35:59 +00:00
Chris Costello
8288fd5402
Fix some bad references.
1999-08-16 20:56:31 +00:00
Nik Clayton
414a35e60a
Add $Id$, to make it simpler for members of the translation teams to
...
track.
The Id line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;
.\" $Id$
.\"
If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.
Approved by: bde
1999-07-12 20:12:29 +00:00
Bruce Evans
4e7767c7b9
Fixed overflow in 1K-blocks to disk-blocks conversions. Use quad
...
arithmetic instead of the special macros in PR 8163 or the magic
2's in PR 381. (Rev.1.3 unfortunately fixed only half of the
problems reported in PR 381.)
PR: 381, 8163
1999-01-01 13:15:02 +00:00
Philippe Charnier
ea28e1c532
Use err(3). Add prototypes.
1997-09-17 06:29:23 +00:00
Jonathan Lemon
026df10061
Remove temporary file on exit.
...
PR: 4010
Submitted by: "Anatoly A. Orehovsky" <tolik@www.tomsk.su>
1997-08-19 20:45:45 +00:00
Steve Price
681e5e7a09
Show the real revision date and not the date that this
...
manpage is being viewed.
1997-06-23 04:03:49 +00:00
Warner Losh
6c3f552a31
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-31 05:11:47 +00:00
Wolfram Schneider
bfd34a4a60
Sort cross references.
1997-01-20 00:03:00 +00:00