History log of /netbsd/usr.sbin/repquota/repquota.c (Results 1 – 25 of 45)
Revision Date Author Comments
# 18945454 16-Jun-2015 christos <christos@NetBSD.org>

improve error messages (remove \n, use __func__, etc)


# 787fff86 12-May-2012 dholland <dholland@NetBSD.org>

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


# c6434ac7 13-Feb-2012 dholland <dholland@NetBSD.org>

Add quotadump(8), which is a link to repquota, and quotarestore(8),
which is new. Includes man page updates. Approved by releng for
freeze.


# 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().


# 7b8d147b 01-Feb-2012 dholland <dholland@NetBSD.org>

Reimplement repquota -x to print in tabular form instead of XML.


# 387df858 29-Jan-2012 dholland <dholland@NetBSD.org>

Fix unsightly botch in repquota's heading output.


# cfcac7b0 25-Jan-2012 dholland <dholland@NetBSD.org>

More cleanup of repquota. For now we're going to compile in the number
of possible ID and object types, as making those numbers non-constant
requires a major rework.

This removes all dependence on q

More cleanup of repquota. For now we're going to compile in the number
of possible ID and object types, as making those numbers non-constant
requires a major rework.

This removes all dependence on quotaprop.h except for the code for
dumping the quota information as a blob of quota RPC XML packets. That
needs to go too and be replaced with a tabular dump format, but one
thing at a time.

show more ...


# 439520b4 09-Jan-2012 dholland <dholland@NetBSD.org>

Remove the explicit fallback direct file access code from repquota and
rely on libquota.


# 4295430d 09-Jan-2012 dholland <dholland@NetBSD.org>

Make repquota use the libquota cursor interface.


# 470df7fb 09-Jan-2012 dholland <dholland@NetBSD.org>

More work on repquota.
- open quotahandles, pass them around, use them for metadata
- split up some of the proplib code


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

Begin cleaning up repquota.


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

Rename struct ufs_quota_entry -> struct quotaval.


# 14d305f3 30-Sep-2011 jym <jym@NetBSD.org>

Fix an implementation inconsistency with the prop_*_send_syscall() and
prop_*_recv_syscall() functions from proplib(3). They now share the
same logic as the one from prop_*_send_ioctl() functions:
-

Fix an implementation inconsistency with the prop_*_send_syscall() and
prop_*_recv_syscall() functions from proplib(3). They now share the
same logic as the one from prop_*_send_ioctl() functions:
- returns an int
- 0 indicates "no error", otherwise returns the error number (and
set errno)

Many consumers of the prop_*_{ioctl, syscall} expect errno to be set
on error and use err() to display the error message. As such, ensures that
errno gets set before returning from these functions.

prop_*_send_syscall() functions returned a boolean, and now return an int.
Fix all call sites to use the new paradigm (only quota2 is affected in src).

As the prop_*_{send,recv}_syscall() API appeared in -current and is only
used by the recent quota2 code, I am not bumping the lib. The API change
only affects the prop_*_send_syscall() function (recv_syscall()s were
already used correctly), so ensure you are not mixing "old" -current
quota binaries with a new proplib(3) (or the other way around). This
change will be announced via a HEADS-UP and UPDATING.

Does not affect the kernel part of proplib.

Document the correct API in prop_array(3) and prop_dictionary(3).

Thanks to Francois Tigeot for noticing the API inconsistency and
reporting it on tech-kern@.

ok bouyer@.

show more ...


# b8fe2bc8 27-Mar-2011 bouyer <bouyer@NetBSD.org>

Make sure to not report quotas for a class if we didn't get valid datas
from kernel.


# 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 ...


# 746fe266 07-Mar-2011 bouyer <bouyer@NetBSD.org>

Don't use the same char b0[] for BLOCK and FILE timeprt(), they would
override each others.


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

more code deduplication


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

- KNF
- merge code
- fix error printing
- don't use static buffers


# 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 ...


# 1d8e4d24 17-Feb-2010 bouyer <bouyer@NetBSD.org>

Make block fields one char wider; allows to sanely display quotas up to
99.9GB while still fitting 80 columns.
Something else needs to be found for the long term ...


# aad74fbe 18-Apr-2009 lukem <lukem@NetBSD.org>

Fix -Wcast-qual issues


# 9c194566 21-Jul-2008 lukem <lukem@NetBSD.org>

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


# a24b12ba 05-Mar-2005 jdolecek <jdolecek@NetBSD.org>

make sure there is space between the username and next field when
username is longer than 9 characters


# 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.


12