#
2e1f5ad9 |
| 11-Feb-2007 |
Mike Pritchard <mpp@FreeBSD.org> |
Add two new options to quota:
-f path Only print quota information for the file system that path resides on. -r Display the quota information in a raw format.
Reviewed by: freebsd-hackers
|
#
f5374712 |
| 04-Feb-2007 |
Mike Pritchard <mpp@FreeBSD.org> |
If a user is over both the soft block limit and soft i-node limit, quota will report one of the grace times incorrectly. This is due to it storing the result in a static buffer, and the routine being
If a user is over both the soft block limit and soft i-node limit, quota will report one of the grace times incorrectly. This is due to it storing the result in a static buffer, and the routine being called like: printf("....", ..., timeprnt(btime), timeprnt(itime), ...)
The problem becomes very obvious if you change one of the default grace periods to be much larger than the other one.
Changed timeprnt to dynamically allocate the string to be displayed.
show more ...
|
#
fbb42904 |
| 04-Feb-2007 |
Mike Pritchard <mpp@FreeBSD.org> |
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
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
show more ...
|
#
dfaa8068 |
| 01-Feb-2007 |
Mike Pritchard <mpp@FreeBSD.org> |
Make quota exit with a non-zero status if one more more file systems are over quota, as documented in the man page.
PR: bin/77918
|
Revision tags: release/6.2.0_cvs, release/6.2.0 |
|
#
478bf774 |
| 22-Oct-2006 |
Ruslan Ermilov <ru@FreeBSD.org> |
- Document the default disk block usage unit. - Add option -h, human-readable output.
PR: docs/53732
|
Revision tags: release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0, release/5.4.0_cvs, release/5.4.0 |
|
#
009cb168 |
| 13-Mar-2005 |
Ceri Davies <ceri@FreeBSD.org> |
Remove an unused #define. md5's with and without this commit match.
Approved by: murray (mentor)
|
Revision tags: release/4.11.0_cvs, release/4.11.0, release/5.3.0_cvs, release/5.3.0 |
|
#
4e14c144 |
| 07-Aug-2004 |
Stefan Farfeleder <stefanf@FreeBSD.org> |
Assign the result of getopt() to an int rather than to a char.
|
Revision tags: release/4.10.0_cvs, release/4.10.0, release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0 |
|
#
09a6b6c3 |
| 05-Aug-2003 |
David Schultz <das@FreeBSD.org> |
Remove redundant declarations.
|
#
923e62f9 |
| 05-Aug-2003 |
David Schultz <das@FreeBSD.org> |
Don't overflow the block quota calculations for NFS mounts.
PR: 47607 Submitted by: Eric van Gyzen <vangyzen@stat.duke.edu>
|
#
aee1b42a |
| 15-Jun-2003 |
Robert Watson <rwatson@FreeBSD.org> |
Now that the kernel access control for quotactl(2) appears to work properly, clean up quota(1). quota(1) has the ability to query quotas either directly from the kernel, or if that fails, by reading
Now that the kernel access control for quotactl(2) appears to work properly, clean up quota(1). quota(1) has the ability to query quotas either directly from the kernel, or if that fails, by reading the quota.user or quota.group files specified for the file system in /etc/fstab. The setuid bit existed solely (apparently) to let non-operator users query their quotas and consumption when quotas weren't enabled for the file system.
o Remove the setuid bit from quota(1).
o Remove the logic used by quota(1) when running setuid to prevent users from querying the quotas of other users or groups. Note that this papered over previously broken kernel access control; if you queried directly using the system call, you could access some of the data "restricted" by quota(1).
In the new world order, the ability to inspect the (live) quotas of other uids and gids via the kernel is controlled by the privilege requirement sysctl. The ability to query via the file is controlled by the file permissions on the quota database backing files (root:operator, group readable by default).
show more ...
|
#
41b0d1a0 |
| 15-Jun-2003 |
Robert Watson <rwatson@FreeBSD.org> |
Now that the kernel access control for quotactl(2) appears to work properly, clean up quota(1). quota(1) has the ability to query quotas either directly from the kernel, or if that fails, by reading
Now that the kernel access control for quotactl(2) appears to work properly, clean up quota(1). quota(1) has the ability to query quotas either directly from the kernel, or if that fails, by reading the quota.user or quota.group files specified for the file system in /etc/fstab. The setuid bit existed solely (apparently) to let non-operator users query their quotas and consumption when quotas weren't enabled for the file system.
o Remove the setuid bit from quota(1).
o Remove the logic used by quota(1) when running setuid to prevent users from querying the quotas of other users or groups. Note that this papered over previously broken kernel access control.
show more ...
|
Revision tags: release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0, release/4.7.0_cvs, release/4.6.2_cvs, release/4.6.2 |
|
#
e56990e4 |
| 09-Aug-2002 |
Ian Dowse <iedowse@FreeBSD.org> |
Add a new flag (-l) that suppresses quota checks on NFS filesystems.
PR: bin/12939 Submitted by: Neil Blakey-Milner <nbm@rucus.ru.ac.za>
|
#
e608ec61 |
| 09-Aug-2002 |
Ian Dowse <iedowse@FreeBSD.org> |
Fix a few compiler warnings, sort options and make the usage() output match the synopsis.
|
Revision tags: release/4.6.1, release/4.6.0_cvs |
|
#
ab5ff6a6 |
| 03-Jun-2002 |
Ian Dowse <iedowse@FreeBSD.org> |
Call getmntinfo with MNT_NOWAIT to avoid hanging if any NFS servers are down. Avoid trying to send RPCs to the pidXXX@machine names used in the special amd(8) mounts.
PR: bin/6183 Submitted by: Pet
Call getmntinfo with MNT_NOWAIT to avoid hanging if any NFS servers are down. Avoid trying to send RPCs to the pidXXX@machine names used in the special amd(8) mounts.
PR: bin/6183 Submitted by: Petr Lampa <lampa@fee.vutbr.cz>
show more ...
|
#
ff288009 |
| 28-Apr-2002 |
Mark Murray <markm@FreeBSD.org> |
Fix some low-hanging fruit in the warnings department; ANSIfy functions, sort out some const issues.
|
#
d3cb5ded |
| 22-Mar-2002 |
Warner Losh <imp@FreeBSD.org> |
remove __P
|
Revision tags: release/4.5.0_cvs, release/4.4.0_cvs |
|
#
44501248 |
| 23-May-2001 |
Jim Pirzyk <pirzyk@FreeBSD.org> |
Changed 'blocks' to 'usage' because we may not be getting quotas from a ufs filesystem and it may be reporting in K instead of 512b blocks. This is true when using a vxfs filesystem (on a solaris box
Changed 'blocks' to 'usage' because we may not be getting quotas from a ufs filesystem and it may be reporting in K instead of 512b blocks. This is true when using a vxfs filesystem (on a solaris box) for instance.
PR: bin/14545 Submitted by: Jim Pirzyk Reviewed by: jkh MFC after: 1 week
show more ...
|
Revision tags: release/4.3.0_cvs, release/4.3.0, release/4.2.0, release/4.1.1_cvs, release/4.1.0, release/3.5.0_cvs |
|
#
b189011d |
| 26-Mar-2000 |
Philippe Charnier <charnier@FreeBSD.org> |
Remove incorrect use of .Nm. Wrap long lines, Unwrap short lines Options: -> The following options are available:
|
Revision tags: release/4.0.0_cvs, release/3.4.0_cvs, release/3.3.0_cvs |
|
#
c3aac50f |
| 28-Aug-1999 |
Peter Wemm <peter@FreeBSD.org> |
$Id$ -> $FreeBSD$
|
Revision tags: release/3.2.0, release/3.1.0, release/3.0.0, release/2.2.8, release/2.2.7 |
|
#
abf0f067 |
| 11-Jun-1998 |
Andrey A. Chernov <ache@FreeBSD.org> |
Local filesystems are ufs not ffs Submitted by: "D. Rock" <rock@cs.uni-sb.de>
|
#
a716ad66 |
| 09-Jun-1998 |
Warner Losh <imp@FreeBSD.org> |
Don't assume that hp->h_lenght == 4. Be conservative in its use. Submitted by: J. Assange a long time ago.
|
Revision tags: release/2.2.6 |
|
#
d63b9ba4 |
| 20-Jan-1998 |
Bruce Evans <bde@FreeBSD.org> |
Converted to Lite2 mount interface - decide filesystem types by name instead of by number.
|
Revision tags: release/2.2.5_cvs |
|
#
9d63ad49 |
| 04-Aug-1997 |
Philippe Charnier <charnier@FreeBSD.org> |
Use err(3). Cosmetic in usage string. Typo in man page.
|
#
c44252b6 |
| 06-Jul-1997 |
Bruce Evans <bde@FreeBSD.org> |
Finish importing Lite2's src/usr.bin, except for ex, diff, grep, mail, pascal and vmstat.sparc. All changed files on the vendor branch should already have been imported.
|
Revision tags: release/2.2.2_cvs |
|
#
1c8af878 |
| 29-Mar-1997 |
Warner Losh <imp@FreeBSD.org> |
compare return value from getopt against -1 rather than EOF, per the final posix standard on the topic.
|