mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
eaa652fbb2
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>
13 lines
317 B
Plaintext
13 lines
317 B
Plaintext
QA output created by 327
|
|
Format and mount
|
|
Create the original files
|
|
root 0 0 0
|
|
fsgqa 2048 0 0
|
|
Set hard quota to prevent third reflink
|
|
root 0 0 0
|
|
fsgqa 2048 0 1024
|
|
Try to reflink again
|
|
cp: failed to clone 'SCRATCH_MNT/test-327/file3' from 'SCRATCH_MNT/test-327/file1': Disk quota exceeded
|
|
root 0 0 0
|
|
fsgqa 2048 0 1024
|