reflink: test quota accounting

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
Darrick J. Wong
2016-01-27 12:53:02 -08:00
parent e750a21128
commit aad7738cda
15 changed files with 736 additions and 1 deletions
+25
View File
@@ -0,0 +1,25 @@
QA output created by 328
Format and mount
Create the original files
root -- 0 0 0 4 0 0
fsgqa -- 3072 0 0 3 0 0
Set hard quota to prevent rewrite
root -- 0 0 0 4 0 0
fsgqa +- 3072 0 1024 3 0 0
Try to dio write the whole file
pwrite64: Disk quota exceeded
root -- 0 0 0 4 0 0
fsgqa +- 3072 0 1024 3 0 0
Try to write the whole file
pwrite64: Disk quota exceeded
root -- 0 0 0 4 0 0
fsgqa +- 3072 0 1024 3 0 0
Set hard quota to allow rewrite
root -- 0 0 0 4 0 0
fsgqa -- 3072 0 8192 3 0 0
Try to dio write the whole file
root -- 0 0 0 4 0 0
fsgqa -- 3072 0 8192 3 0 0
Try to write the whole file
root -- 0 0 0 4 0 0
fsgqa -- 3072 0 8192 3 0 0