History log of /src/lib/libquota/quota_oldfiles.c |
Revision | | Date | Author | Comments |
1.10 |
| 26-Apr-2022 |
hannken | Fix default quota file names, both user and group quota used the same default name "QUOTAFILENAME, names[USRQUOTA])" resulting in diagnostic assertion and possibly corrupted quota data.
|
1.9 |
| 24-Feb-2012 |
njoly | branches: 1.9.2; 1.9.26; 1.9.36; Check if fstab file exists before trying to parse it, to avoid warnings from {get,set}fsent() functions if missing.
dholland ok.
|
1.8 |
| 01-Feb-2012 |
dholland | branches: 1.8.2; Add missing RCSID().
|
1.7 |
| 01-Feb-2012 |
dholland | Be consistent about whether idtype and objtype codes are signed or unsigned. They are signed. (While unsigned might have been a better choice, it doesn't really matter and the majority of preexisting uses were signed. And consistency is good.)
|
1.6 |
| 01-Feb-2012 |
dholland | Change the syscall API for quotas over to the new non-proplib one.
- struct vfs_quotactl_args -> struct quotactl_args - add sys/stdint.h to sys/quotactl.h for clean userland build - install sys/quotactl.h in /usr/include - update set lists for same - add new marshalling code in libquota - add new unmarshalling code in vfs_syscalls.c - discard proplib interpreter code in vfs_quotactl.c - add dispatching code for the 14 quotactl ops in vfs_quotactl.c - mark the proplib quotactl syscall obsolete - add a new syscall number for the new quotactl syscall - change the name of the syscall to __quotactl() - remove the decl of the old quotactl from quota/quotaprop.h - add a decl of the new quotactl to sys/quotactl.h - update the libc build - update ktruss - remove proplib marshalling code from libquota - update copy of syscall table in gdb ppc sources - hack rumphijack to accomodate new quotactl name (as I recall, pooka wanted such a name change to simplify something, but I don't really see what/how)
This change appears to require a kernel version bump for rumpish reasons.
|
1.5 |
| 30-Jan-2012 |
dholland | Add quota_quotaon() and quota_quotaoff(). Use them in quotaon(8).
|
1.4 |
| 30-Jan-2012 |
dholland | Fix silly bug reading fstab.
|
1.3 |
| 25-Jan-2012 |
dholland | Improve how quota_open() works and generally improve function dispatching. Allow access to the quota files via the oldfiles code if quotaon hasn't run yet. Change the latter so it calls getfsent() up front (and only once) to make it easier to avoid whacking caller state.
|
1.2 |
| 09-Jan-2012 |
dholland | Implement quota_put and quota_delete for the fallback direct file access backend.
|
1.1 |
| 09-Jan-2012 |
dholland | Implement fallback direct access to quota1-type quota files. Uses (mostly) code from repquota. Add some missing pieces that weren't in repquota.
Use the direct file access code for cursors if proplib reports the quota version is 1.
|
1.8.2.1 |
| 02-Mar-2012 |
riz | Pull up following revision(s) (requested by njoly in ticket #67): lib/libquota/quota_oldfiles.c: revision 1.9 Check if fstab file exists before trying to parse it, to avoid warnings from {get,set}fsent() functions if missing. dholland ok.
|
1.9.36.1 |
| 27-Apr-2022 |
martin | Pull up following revision(s) (requested by hannken in ticket #1440):
usr.sbin/quotaon/quotaon.c: revision 1.31 lib/libquota/quota_oldfiles.c: revision 1.10 sys/ufs/ufs/ufs_quota1.c: revision 1.25
Fix default quota file names, both user and group quota used the same default name "QUOTAFILENAME, names[USRQUOTA])" resulting in diagnostic assertion and possibly corrupted quota data.
Keep flag "UFS_QUOTA" set until the last quota is closed. Prevents a live lock when dqrele() finds a struct with "dq_cnt == 1" and flag "DQ_MOD" and cannot sync as flag UFS_QUOTA is unset.
As the quota type comes from the kernel and is only valid when quota is on get the type before quota_off and after quota_on.
|
1.9.26.1 |
| 27-Apr-2022 |
martin | Pull up following revision(s) (requested by hannken in ticket #1739):
usr.sbin/quotaon/quotaon.c: revision 1.31 lib/libquota/quota_oldfiles.c: revision 1.10 sys/ufs/ufs/ufs_quota1.c: revision 1.25
Fix default quota file names, both user and group quota used the same default name "QUOTAFILENAME, names[USRQUOTA])" resulting in diagnostic assertion and possibly corrupted quota data.
Keep flag "UFS_QUOTA" set until the last quota is closed. Prevents a live lock when dqrele() finds a struct with "dq_cnt == 1" and flag "DQ_MOD" and cannot sync as flag UFS_QUOTA is unset.
As the quota type comes from the kernel and is only valid when quota is on get the type before quota_off and after quota_on.
|
1.9.2.2 |
| 17-Apr-2012 |
yamt | sync with head
|
1.9.2.1 |
| 24-Feb-2012 |
yamt | file quota_oldfiles.c was added on branch yamt-pagecache on 2012-04-17 00:05:32 +0000
|