Home | History | Annotate | Download | only in ufs
History log of /src/sys/ufs/ufs/quota1_subr.c
RevisionDateAuthorComments
 1.8  22-Feb-2023  riastradh ufs: Nix trailing whitespace and tidy up some other minor KNF.
 1.7  29-Jan-2012  dholland Change dqblk_to_quotaval() from quota1_subr.c to dqblk_to_quotavals(),
and pass in two single quotaval structs (for blocks and inodes)
instead of an array of (implicitly) QUOTA_NLIMITS quotaval structs
indexed by constants from quotaprop.h.

Note: because this code is used by COMPAT_50 as well as ufs, this
change requires a kernel version bump. (The code is also used by
edquota, but via .PATH so it's not ABI-sensitive there.)
 1.6  25-Nov-2011  dholland branches: 1.6.2;
Rename struct ufs_quota_entry -> struct quotaval.
 1.5  20-Nov-2011  dholland Reshuffle decls among the quota headers so everything is in the place
it should be:
- stuff for the proplib interface goes in <quota/quotaprop.h>
- stuff for userlevel only goes in <quota/quota.h>
- stuff shared between user and kernel goes in <sys/quota.h>

Note that <quota/quota.h> and <quota/quotaprop.h> are expected to be
moved or removed later on... one thing at a time.

Update include directives in other files as needed.
 1.4  07-Jun-2011  bouyer branches: 1.4.2;
Fix bad cut'n'paste in copyright. Pointed out by dyoung@
 1.3  24-Mar-2011  bouyer branches: 1.3.2; 1.3.4; 1.3.6;
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 ...)
 1.2  06-Mar-2011  bouyer 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.
 1.1  28-Jan-2011  bouyer branches: 1.1.2;
file quota1_subr.c was initially added on branch bouyer-quota2.
 1.1.2.3  03-Feb-2011  bouyer Change semantic of limits to allow up to the limit inclued (instead of
up to one less than the limit: I feel that if my limit is 1000 inodes
I should be able to create 1000 files, not 999).
Keep the previous semantic for quota1 dquot, the conversion functions
will add or remove 1 when converting limits from/to the new format.

Adjust test for this change.
 1.1.2.2  31-Jan-2011  bouyer Catch up with Q2V -> QL renaming
Enforce limits for quota2.
pass quota type (*QUOTA) and limit type (QL_*) to
KAUTH_REQ_SYSTEM_FS_QUOTA_NOLIMIT, to make it possible to skip
limit checks for some quota type only if a listener wants to.
 1.1.2.1  28-Jan-2011  bouyer Add conversion functions between old and new format.
 1.3.6.2  06-Jun-2011  jruoho Sync with HEAD.
 1.3.6.1  24-Mar-2011  jruoho file quota1_subr.c was added on branch jruoho-x86intr on 2011-06-06 09:10:18 +0000
 1.3.4.1  23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.3.2.3  12-Jun-2011  rmind sync with head
 1.3.2.2  21-Apr-2011  rmind sync with head
 1.3.2.1  24-Mar-2011  rmind file quota1_subr.c was added on branch rmind-uvmplock on 2011-04-21 01:42:21 +0000
 1.4.2.1  17-Apr-2012  yamt sync with head
 1.6.2.1  18-Feb-2012  mrg merge to -current.

RSS XML Feed