reflink: fix quota tests to work properly
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 9 Jan 2017 20:53:35 +0000 (12:53 -0800)
committerEryu Guan <eguan@redhat.com>
Sun, 15 Jan 2017 05:56:45 +0000 (13:56 +0800)
commiteaa652fbb2934658452bf7a677c6082726513071
tree8e3677deb82b11f49b167e1d3385d2bc8f5492fa
parent3547db8e8440568d974b00495ab2e15dcce4faec
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>
13 files changed:
common/quota
tests/generic/305
tests/generic/305.out
tests/generic/326
tests/generic/326.out
tests/generic/327
tests/generic/327.out
tests/generic/328
tests/generic/328.out
tests/xfs/213
tests/xfs/213.out
tests/xfs/214
tests/xfs/214.out