Commit Graph

42 Commits

Author SHA1 Message Date
dholland
a577f74f5b libquota no longer requires libprop. Also remove some other no-longer-used
.PATH'd-in bits from repquota.
2012-02-01 17:53:01 +00:00
dholland
24118eee5e Update rquotad to use the new libquota API. 2012-01-09 15:37:34 +00:00
dholland
51d1d7e7c4 Rename struct ufs_quota_entry -> struct quotaval. 2011-11-25 16:55:05 +00:00
plunky
2b8aaed8cd NULL does not need a cast, here 2011-09-16 16:13:16 +00:00
plunky
87d4f6076b Apply casts to cases where xdrproc_t is expected but is not
strictly passed, for example because the second argument is
a different kind of pointer.
2011-08-30 17:06:20 +00:00
joerg
17941b2b14 staticfy. Use __dead. 2011-08-27 15:46:59 +00:00
bouyer
d9210c2405 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 ...)
2011-03-24 17:05:39 +00:00
bouyer
72918bae56 Define qfextension here 2011-03-12 12:30:39 +00:00
bouyer
063f96f3c2 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.
2011-03-06 17:08:10 +00:00
lukem
eccb8fb7be WARNS=4 2009-03-16 00:43:33 +00:00
mrg
0c37c63edc change (mostly) int to socklen_t. GCC 4 doesn't like that int and
socklen_t are different signness.
2006-05-09 20:18:05 +00:00
jrf
190b2e4c51 Replaced strncpy with strlcpy. Thanks to Peter Postma who
pointed them our in PR #25762. Approved by christos@NetBSD.org.
2004-09-07 13:20:39 +00:00
agc
7db1d33cba Modify the licences of code written by Theo De Raadt from a 4-clause
to a 2-clause licence (retaining UCB clauses (1) and (2)), per PR
22409 from Joel Baker, approved by Theo de Raadt, and ratified by
myself - the only discrepancy being the handling of the original
clause 3 in src/usr.sbin/yppoll/yppoll.c.
2003-12-10 12:06:25 +00:00
bouyer
50a25ded2d memset(0) ext_getq_args before use. Should fix bin/22592 by Mark Davies. 2003-09-20 22:25:29 +00:00
bouyer
234e340664 Remove bug section, we now support group quotas. 2003-02-14 14:58:42 +00:00
bouyer
a39a98c45d Implement rquota RPC version 2, compatible with the linux implementation,
as proposed on tech-userlevel on Dec 06 2002. This allows to retrieve
group quota informations from NFS servers.
2003-02-14 14:55:58 +00:00
bouyer
d6d2a9ea4a Make this file explicitely public domain. 2002-06-09 17:10:44 +00:00
itojun
a63c3e28d9 g/c unused function, which uses TS RPC. 2002-06-05 23:22:38 +00:00
wiz
42f6cf520c Whitespace nits, sort sections. 2002-01-15 02:25:49 +00:00
lukem
1ad851cb0f use LOG_WARNING instead of LOG_ERR for non critical errors 2001-01-10 01:50:05 +00:00
fvdl
145ded3cdc Missed a pmap_unset -> rpcb_unset change. 2000-06-03 20:57:40 +00:00
fvdl
42f513b9d2 Adapt for TI-RPC. 2000-06-03 20:52:18 +00:00
pk
c3f48a34ce No need for <varargs.h> here. 1999-11-29 10:59:02 +00:00
garbled
f124765044 More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:25:43 +00:00
mrg
f2130fd9fd do not use LOG_CONS. 1999-01-31 08:51:53 +00:00
perry
bfd526219d bzero->memset, bcopy->memcpy, bcmp->memcmp 1998-08-10 02:57:23 +00:00
mrg
896a03fbba KNF, and use MOUNT_FFS over "ffs" 1998-07-03 11:48:58 +00:00
perry
6982982f8d macroize BSD, NetBSD, FreeBSD and misc cleanup 1998-02-06 05:39:31 +00:00
lukem
61eb3f4761 * store st_dev of filesystem not quotafile. (inspired by an openbsd commitmsg)
* minor KNF, fix typos, use strchr() not index()
* check return value of malloc() and use strdup() where appropriate
1998-01-21 11:37:16 +00:00
enami
c44131f35b Fix .Nm usage. 1997-10-20 02:46:44 +00:00
mrg
2268d2dfb3 merge lite-2 Makefiles (rcsids), and turn on WARNS for all of libexec. 1997-10-08 09:07:11 +00:00
mrg
59093d44d1 WARNS?=1. RCS ids. cleanup a little. 1997-10-07 11:15:16 +00:00
kleink
66105c37fc Lseek(2) usage cleanup: the use of L_SET/L_INCR/L_XTND is deprecated,
use SEEK_SET/SEEK_CUR/SEEK_END instead.
1997-08-25 19:31:43 +00:00
thorpej
176865a07b RCS id police. 1996-08-30 20:15:06 +00:00
jtc
e25f83b8be Fixed to use ffs instead of ufs; See PR #1984 1996-02-01 02:50:52 +00:00
jtc
2d577aafd2 Install manpage as foo(8) as well as rpc.foo(8), a convenient shorthand.
Also make sure that foo and rpc.foo are mentioned in the NAME section.
1995-04-12 00:47:27 +00:00
jtc
0e1df05653 #include <sys/signal.h> -> <signal.h> 1995-04-12 00:41:40 +00:00
mycroft
93335c3b0e Free argument list (for !from_inetd case). General cleanup. 1995-01-13 19:16:45 +00:00
mycroft
002aa598e1 Correct calling sequence of getsockname(2). 1995-01-13 06:14:28 +00:00
pk
a9384f4676 Define `MAN'. 1994-12-25 12:32:12 +00:00
cgd
b54e75897f be a bit more careful with types, casts, and and function declarations. 1994-12-23 14:29:31 +00:00
deraadt
8b6e0e0481 from bouyer@ensta.fr; cleaned by me 1994-06-24 07:42:26 +00:00