mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
3423e3326e
Set different block & inode grace timers for user, group and project quotas, then test softlimit enforcement timeout, make sure different grace timers as expected. Signed-off-by: Zorro Lang <zlang@redhat.com> Reviewed-by: Eryu Guan <guaneryu@gmail.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
42 lines
1.5 KiB
Plaintext
42 lines
1.5 KiB
Plaintext
QA output created by 603
|
|
### Set up different grace timers to each type of quota
|
|
|
|
### Test user quota softlimit and grace time
|
|
### Initialize files, and their mode and ownership
|
|
--- Test block quota ---
|
|
Write 225 blocks...
|
|
Rewrite 250 blocks plus 1 byte, over the block softlimit...
|
|
Try to write 1 one more block after grace...
|
|
pwrite: Disk quota exceeded
|
|
--- Test inode quota ---
|
|
Create 2 more files, over the inode softlimit...
|
|
Try to create one more inode after grace...
|
|
touch: cannot touch 'SCRATCH_MNT/file5': Disk quota exceeded
|
|
### Remove all files
|
|
|
|
### Test group quota softlimit and grace time
|
|
### Initialize files, and their mode and ownership
|
|
--- Test block quota ---
|
|
Write 225 blocks...
|
|
Rewrite 250 blocks plus 1 byte, over the block softlimit...
|
|
Try to write 1 one more block after grace...
|
|
pwrite: Disk quota exceeded
|
|
--- Test inode quota ---
|
|
Create 2 more files, over the inode softlimit...
|
|
Try to create one more inode after grace...
|
|
touch: cannot touch 'SCRATCH_MNT/file5': Disk quota exceeded
|
|
### Remove all files
|
|
|
|
### Test project quota softlimit and grace time
|
|
### Initialize files, and their mode and ownership
|
|
--- Test block quota ---
|
|
Write 225 blocks...
|
|
Rewrite 250 blocks plus 1 byte, over the block softlimit...
|
|
Try to write 1 one more block after grace...
|
|
pwrite: EDQUOT|ENOSPC
|
|
--- Test inode quota ---
|
|
Create 2 more files, over the inode softlimit...
|
|
Try to create one more inode after grace...
|
|
touch: cannot touch 'SCRATCH_MNT/t/file5': EDQUOT|ENOSPC
|
|
### Remove all files
|