History log of /src/usr.bin/quota/printquota.h |
Revision | | Date | Author | Comments |
1.5 |
| 24-Mar-2011 |
bouyer | 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.4 |
| 06-Mar-2011 |
christos | - merge more code. - simplify struct access.
|
1.3 |
| 06-Mar-2011 |
christos | - WARNS=4 - KNF - don't cast malloc - don't use static buffers - fix types - remove extra \n's from errors - fix prototypes
|
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 |
| 21-Jan-2011 |
bouyer | branches: 1.1.2; file printquota.h was initially added on branch bouyer-quota2.
|
1.1.2.7 |
| 30-Jan-2011 |
bouyer | Allow edquota to edit per-user grace times on quota2 (or the default, global grace times on quota1). Use re-use -t to specify the grace time on command line; editing the grace time on quota1 is done with -d now.
|
1.1.2.6 |
| 30-Jan-2011 |
bouyer | Revert to previous format for timeprt, which is less precise but more user-friendly. Introduce timepprt for cases where we want human-readable but precise time display.
|
1.1.2.5 |
| 30-Jan-2011 |
bouyer | Change timeprt to print in weeks, days, hours, minutes, seconds Change timeprt and intprt to take the number of acceptable char as argument Drop HN_PRIV_UNLIMITED, the printable space will decide how to print "unlimited"
|
1.1.2.4 |
| 30-Jan-2011 |
bouyer | Implement "get version" quotactl command, which return the filesystem's enabled quota versiob (1 for legacy, 2 for new). For quota2, make quota and repquota print the user's allowed grace period if -v is given and not overquota (if overquota, the remaining time is printed instead, as usual).
|
1.1.2.3 |
| 29-Jan-2011 |
bouyer | Allow to pass HN_PRIV_UNLIMITED flag (private to printquota consumers), which cause it to return "unlimited" instead of "-" of UQUAD_MAX. Introduce intrd(), which parses a string and return a value appropriate for quota limits. The string can be a decimal number, a value in understandable by dehumanize_number(), "-" or "unlimited".
|
1.1.2.2 |
| 28-Jan-2011 |
bouyer | Rename getufsquota to getvfsquota, and abstract in its own file.
|
1.1.2.1 |
| 21-Jan-2011 |
bouyer | Add support for quotactl("getall") command, and convert repquota to new world.
|