History log of /netbsd/usr.bin/quota/quota.c (Results 1 – 25 of 50)
Revision Date Author Comments
# be02e2e5 13-Jul-2014 dholland <dholland@NetBSD.org>

Remove leftover #if 0 code from before the libquota rework.


# 7ee6bddf 12-May-2012 dholland <dholland@NetBSD.org>

Remove traces of -D option, which no longer does anything.


# 182f796c 05-Feb-2012 dholland <dholland@NetBSD.org>

Remove unneeded #include.


# 011f165a 01-Feb-2012 dholland <dholland@NetBSD.org>

Simplify elaborate calls to quota_check_limit().


# a1453ca3 30-Jan-2012 dholland <dholland@NetBSD.org>

Remove unused include.


# 2e106922 30-Jan-2012 dholland <dholland@NetBSD.org>

Remove an old, no longer necessary hack from libquota and handle the
relevant case properly in usr.bin/quota.


# 335232f5 09-Jan-2012 dholland <dholland@NetBSD.org>

Clean up usr.bin/quota to use the new libquota API.
(with one relatively minor exception remaining)


# b91578ed 30-Nov-2011 dholland <dholland@NetBSD.org>

Adjust the quota-fetching code to allow more than two object types.
(as far as we can so far, at least)

Note that quota won't actually work fully with multiple object types
as it is, but this and th

Adjust the quota-fetching code to allow more than two object types.
(as far as we can so far, at least)

Note that quota won't actually work fully with multiple object types
as it is, but this and the last change are a good start and do fold
together a lot of duplicated code.

show more ...


# 6bed4584 30-Nov-2011 dholland <dholland@NetBSD.org>

Clean up the printout code to support more than the old fixed two
object types.


# 7ffecf14 30-Nov-2011 dholland <dholland@NetBSD.org>

Move a big chunk of code out of a loop into its own function.


# cc1c364d 27-Nov-2011 dholland <dholland@NetBSD.org>

Use __dead, not attribute noreturn.


# 70d65dde 27-Nov-2011 dholland <dholland@NetBSD.org>

The proper type for a variable that can be either a uid or gid is id_t,
not uint32_t.


# 6f6767e2 25-Nov-2011 dholland <dholland@NetBSD.org>

Rename struct ufs_quota_entry -> struct quotaval.


# bec3b862 24-Mar-2011 bouyer <bouyer@NetBSD.org>

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever fil

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)

show more ...


# e03ec6e9 06-Mar-2011 christos <christos@NetBSD.org>

- merge more code.
- simplify struct access.


# 33193fc4 06-Mar-2011 christos <christos@NetBSD.org>

- WARNS=4
- KNF
- don't cast malloc
- don't use static buffers
- fix types
- remove extra \n's from errors
- fix prototypes


# 0367ea04 06-Mar-2011 bouyer <bouyer@NetBSD.org>

merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by

merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.

show more ...


# b9f234dd 13-Apr-2009 lukem <lukem@NetBSD.org>

Fix -Wcast-qual and -Wshadow issues


# 98e5374c 21-Jul-2008 lukem <lukem@NetBSD.org>

Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.


# 6660b4f3 17-Jul-2007 christos <christos@NetBSD.org>

eliminate MFSTYPENAME


# 190b2e4c 07-Sep-2004 jrf <jrf@NetBSD.org>

Replaced strncpy with strlcpy. Thanks to Peter Postma who
pointed them our in PR #25762. Approved by christos@NetBSD.org.


# 6bd1d6d4 21-Apr-2004 christos <christos@NetBSD.org>

Replace the statfs() family of system calls with statvfs().
Retain binary compatibility.


# b635f565 05-Jan-2004 jmmv <jmmv@NetBSD.org>

Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.


# ebd3b31b 21-Sep-2003 bouyer <bouyer@NetBSD.org>

Check the right error code to fallback to rquota v1 RPC.
Problem found and fix tested by Jan Schaumann.


# 89aaa1bb 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.


12