Re: [PATCH 3/7] reflink: fix quota tests to work properly

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



On Sun, Dec 11, 2016 at 01:53:04PM -0800, Darrick J. Wong wrote:
> 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@xxxxxxxxxx>
> ---
>  tests/generic/305     |    2 +-
>  tests/generic/305.out |   30 +++++++++++++++---------------
>  tests/generic/326     |    2 +-
>  tests/generic/326.out |   30 +++++++++++++++---------------
>  tests/generic/327     |   12 +++++++-----
>  tests/generic/327.out |   12 ++++++------
>  tests/generic/328     |   14 ++++++++------
>  tests/generic/328.out |   28 ++++++++++++++--------------
>  8 files changed, 67 insertions(+), 63 deletions(-)
> 
> 
> diff --git a/tests/generic/305 b/tests/generic/305
> index d73d87f..9c3489b 100755
> --- a/tests/generic/305
> +++ b/tests/generic/305
> @@ -51,7 +51,7 @@ _require_quota
>  _require_nobody
>  
>  _repquota() {
> -	repquota $SCRATCH_MNT | egrep '^(fsgqa|root|nobody)'
> +	repquota -O csv $SCRATCH_MNT | egrep '^(fsgqa|root|nobody)' | awk -F ',' '{print $1, $4, $5, $6}'

The version of "quota" is a bit old shipped by RHEL7, there's no "-O"
option support. And this works for me

	repquota $SCRATCH_MNT | egrep '^(fsgqa|root|nobody)' | awk '{print $1, $3, $4, $5}'

Still worth chaning the .out files this way?

Thanks,
Eryu
--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux