History log of /src/tests/fs/ffs/t_miscquota.sh |
Revision | | Date | Author | Comments |
1.9 |
| 05-Dec-2021 |
msaitoh | s/shapshot/snapshot/
|
1.8 |
| 22-Jan-2013 |
dholland | spelling
|
1.7 |
| 30-Sep-2012 |
bouyer | Add test cases for the bug fixed in sys/ufs/ufs/ufs_quota2.c 1.35: when a on-disk block/inode allocation triggers allocating a new quota entry, the new quota entry is not in the quota2 header block, and the allocation will later be denied, the changes to the quota block would not be flushed to disk, leading to list corruption (detected by fsck).
|
1.6 |
| 13-Feb-2012 |
dholland | branches: 1.6.2; 1.6.4; 1.6.6; Update reference output to match yesterday's fix. ok martin@ for releng
|
1.5 |
| 01-Feb-2012 |
dholland | Reimplement repquota -x to print in tabular form instead of XML.
|
1.4 |
| 18-Jan-2012 |
bouyer | Make parts of the quota tests useable for more than quotas: - rename h_quota2_server to h_ffs_server, there's nothing about quotas in there. - extract non-quota parts of quotas_common.sh to ffs_common.sh
|
1.3 |
| 09-Mar-2011 |
bouyer | branches: 1.3.4; Use librumphijack for quota commands instead of rumpifed versions.
|
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 |
| 11-Feb-2011 |
bouyer | branches: 1.1.2; file t_miscquota.sh was initially added on branch bouyer-quota2.
|
1.1.2.4 |
| 13-Feb-2011 |
bouyer | Add a test checking that an unlinked file cleaned by the log replay keeps quotas up to date.
|
1.1.2.3 |
| 12-Feb-2011 |
bouyer | Add some quota+snapshot tests.
|
1.1.2.2 |
| 11-Feb-2011 |
bouyer | This test requires root
|
1.1.2.1 |
| 11-Feb-2011 |
bouyer | Add a test which cause the kernel to walk a quota list where all entries are not in the header disk block, and at last 2 of them are in the same non-header disk block.
|
1.3.4.3 |
| 23-Jan-2013 |
yamt | sync with head
|
1.3.4.2 |
| 30-Oct-2012 |
yamt | sync with head
|
1.3.4.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.6.6.2 |
| 25-Feb-2013 |
tls | resync with head
|
1.6.6.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.6.4.1 |
| 01-Nov-2012 |
matt | sync with netbsd-6-0-RELEASE.
|
1.6.2.1 |
| 01-Oct-2012 |
riz | Pull up following revision(s) (requested by bouyer in ticket #580): tests/fs/ffs/h_quota2_tests.c: revision 1.4 tests/fs/ffs/t_miscquota.sh: revision 1.7 sys/ufs/ufs/ufs_quota2.c: revision 1.35 Fix quota2 list corruption issue when defaultquotas are 0 (deny any file and block allocation). When quota2_check() is called with an uid not yet in the list, getinoquota2() will call quota2_q2ealloc() to allocate a new entry for this uid. quota2_q2ealloc() will remove an entry from the free list and put it at the head of the corresponding hash list, and flush the block containing the header if it's not the one also containing the allocated entry. quota2_q2ealloc() then return the alocated entry and corresponding block to caller (getinoquota2() here), which returns it to quota2_check(). quota2_check() then checks if the allocation can succeed, and returns and error if not and calls brelse() on the buffer (because from his POW no change was made to the entry), effectively discarding changes to the entry that may have been made by quota2_q2ealloc(). Fix by always bwrite()ing the entry in quota2_q2ealloc(), and re-reading the entry in caller. Add test cases for the bug fixed in sys/ufs/ufs/ufs_quota2.c 1.35: when a on-disk block/inode allocation triggers allocating a new quota entry, the new quota entry is not in the quota2 header block, and the allocation will later be denied, the changes to the quota block would not be flushed to disk, leading to list corruption (detected by fsck).
|