mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
reflink: fix quota tests to work properly
Fix the reflink quota tests to su to the fsgqa user so that we actually test enforcement of quotas. Seems that XFS enforces user quotas even if root is writing to a user file, whereas everything else lets root writes through. Also clean up some of the variable usage and _require_user. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Eryu Guan <eguan@redhat.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
committed by
Eryu Guan
parent
3547db8e84
commit
eaa652fbb2
+15
-15
@@ -1,22 +1,22 @@
|
||||
QA output created by 213
|
||||
Format and mount
|
||||
Create the original files
|
||||
root -- 3072 0 0 7 0 0
|
||||
nobody -- 0 0 0 1 0 0
|
||||
fsgqa -- 0 0 0 1 0 0
|
||||
root 3072 0 0
|
||||
nobody 0 0 0
|
||||
fsgqa 0 0 0
|
||||
Change file ownership
|
||||
root -- 0 0 0 4 0 0
|
||||
nobody -- 0 0 0 1 0 0
|
||||
fsgqa -- 3072 0 0 4 0 0
|
||||
root 0 0 0
|
||||
nobody 0 0 0
|
||||
fsgqa 3072 0 0
|
||||
CoW one of the files
|
||||
root -- 0 0 0 4 0 0
|
||||
nobody -- 0 0 0 1 0 0
|
||||
fsgqa -- 3520 0 0 4 0 0
|
||||
root 0 0 0
|
||||
nobody 0 0 0
|
||||
fsgqa 3520 0 0
|
||||
Remount the FS to see if accounting changes
|
||||
root -- 0 0 0 4 0 0
|
||||
nobody -- 0 0 0 1 0 0
|
||||
fsgqa -- 3072 0 0 4 0 0
|
||||
root 0 0 0
|
||||
nobody 0 0 0
|
||||
fsgqa 3072 0 0
|
||||
Chown one of the files
|
||||
root -- 0 0 0 4 0 0
|
||||
nobody -- 1024 0 0 2 0 0
|
||||
fsgqa -- 2048 0 0 3 0 0
|
||||
root 0 0 0
|
||||
nobody 1024 0 0
|
||||
fsgqa 2048 0 0
|
||||
|
||||
Reference in New Issue
Block a user