History log of /freebsd-10.1-release/lib/libutil/quotafile.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 272461 02-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 255007 28-Aug-2013 jilles

libutil: Use O_CLOEXEC for internal file descriptors from open().


# 229403 03-Jan-2012 ed

Replace index() and rindex() calls with strchr() and strrchr().

The index() and rindex() functions were marked LEGACY in the 2001
revision of POSIX and were subsequently removed from the 2008 revision.
The strchr() and strrchr() functions are part of the C standard.

This makes the source code a lot more consistent, as most of these C
files also call into other str*() routines. In fact, about a dozen
already perform strchr() calls.


# 207736 06-May-2010 mckusick

Merger of the quota64 project into head.

This joint work of Dag-Erling Smørgrav and myself updates the
FFS quota system to support both traditional 32-bit and new 64-bit
quotas (for those of you who want to put 2+Tb quotas on your users).

By default quotas are not compiled into the kernel. To include them
in your kernel configuration you need to specify:

options QUOTA # Enable FFS quotas

If you are already running with the current 32-bit quotas, they
should continue to work just as they have in the past. If you
wish to convert to using 64-bit quotas, use `quotacheck -c 64';
if you wish to revert from 64-bit quotas back to 32-bit quotas,
use `quotacheck -c 32'.

There is a new library of functions to simplify the use of the
quota system, do `man quotafile' for details. If your application
is currently using the quotactl(2), it is highly recommended that
you convert your application to use the quotafile interface.
Note that existing binaries will continue to work.

Special thanks to John Kozubik of rsync.net for getting me
interested in pursuing 64-bit quota support and for funding
part of my development time on this project.


# 205207 16-Mar-2010 mckusick

Debugging nits found while testing the new 64-bit quota code.


# 201144 28-Dec-2009 mckusick

Add and document the quota_convert function which converts between the
old 32-bit and the new 64-bit formats.


# 201037 27-Dec-2009 mckusick

Minor bugs turned up during conversion of quotacheck.


# 199328 16-Nov-2009 mckusick

Add and document new quoat_on and quota_off functions.


# 198265 20-Oct-2009 mckusick

Add quota_maxid which returns the maximum user (or group) identifier
in an associated quotafile. Needed by repquota.

Bug fix in quota_read.


# 197532 26-Sep-2009 des

Further extend the quotafile API.


# 197510 25-Sep-2009 des

Style


# 188604 14-Feb-2009 mckusick

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.


# 188598 13-Feb-2009 mckusick

Make hasquota thread safe.


# 188568 13-Feb-2009 mckusick

Move hasquota() function to libutil.


# 188434 10-Feb-2009 mckusick

Bug fixes found from using these functions in edquota.


# 187914 30-Jan-2009 des

WIP