Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-9] src

Module Name:    src
Committed By:   martin
Date:           Wed Apr 27 16:53:32 UTC 2022

Modified Files:
        src/lib/libquota [netbsd-9]: quota_oldfiles.c
        src/sys/ufs/ufs [netbsd-9]: ufs_quota1.c
        src/usr.sbin/quotaon [netbsd-9]: quotaon.c

Log Message:
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.

To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.9.36.1 src/lib/libquota/quota_oldfiles.c
cvs rdiff -u -r1.22.22.1 -r1.22.22.2 src/sys/ufs/ufs/ufs_quota1.c
cvs rdiff -u -r1.30 -r1.30.34.1 src/usr.sbin/quotaon/quotaon.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index