linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] xfs/518: modify timer/state commands to remove new g,p timer output
@ 2020-07-31 17:37 Bill O'Donnell
  2020-08-09 15:41 ` Eryu Guan
  0 siblings, 1 reply; 3+ messages in thread
From: Bill O'Donnell @ 2020-07-31 17:37 UTC (permalink / raw)
  To: guaneryu, linux-xfs, fstests; +Cc: darrick.wong, sandeen

New xfs_quota kernel and xfsprogs add grace timers for group and project,
in addition to existing user quota. Adjust xfs/518 to accommodate those
changes, and avoid regression.

Signed-off-by: Bill O'Donnell <billodo@redhat.com>
---
 tests/xfs/518 | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/xfs/518 b/tests/xfs/518
index da39d8dc..c49c4e4d 100755
--- a/tests/xfs/518
+++ b/tests/xfs/518
@@ -41,12 +41,12 @@ _qmount_option "usrquota"
 _scratch_mount >> $seqres.full
 
 $XFS_QUOTA_PROG -x -c 'timer -u 300m' $SCRATCH_MNT
-$XFS_QUOTA_PROG -x -c 'state' $SCRATCH_MNT | grep 'grace time'
+$XFS_QUOTA_PROG -x -c 'state -u' $SCRATCH_MNT | grep 'grace time'
 _scratch_unmount
 
 # Remount and check the limits
 _scratch_mount >> $seqres.full
-$XFS_QUOTA_PROG -x -c 'state' $SCRATCH_MNT | grep 'grace time'
+$XFS_QUOTA_PROG -x -c 'state -u' $SCRATCH_MNT | grep 'grace time'
 _scratch_unmount
 
 # Run repair to force quota check
@@ -57,12 +57,12 @@ _scratch_xfs_repair >> $seqres.full 2>&1
 # while the incore copy stays at whatever was read in prior to quotacheck.
 # This will show up after the /next/ remount.
 _scratch_mount >> $seqres.full
-$XFS_QUOTA_PROG -x -c 'state' $SCRATCH_MNT | grep 'grace time'
+$XFS_QUOTA_PROG -x -c 'state -u' $SCRATCH_MNT | grep 'grace time'
 _scratch_unmount
 
 # Remount and check the limits
 _scratch_mount >> $seqres.full
-$XFS_QUOTA_PROG -x -c 'state' $SCRATCH_MNT | grep 'grace time'
+$XFS_QUOTA_PROG -x -c 'state -u' $SCRATCH_MNT | grep 'grace time'
 _scratch_unmount
 
 # success, all done
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] xfs/518: modify timer/state commands to remove new g,p timer output
  2020-07-31 17:37 [PATCH] xfs/518: modify timer/state commands to remove new g,p timer output Bill O'Donnell
@ 2020-08-09 15:41 ` Eryu Guan
  2020-08-09 16:22   ` Eryu Guan
  0 siblings, 1 reply; 3+ messages in thread
From: Eryu Guan @ 2020-08-09 15:41 UTC (permalink / raw)
  To: Bill O'Donnell; +Cc: guaneryu, linux-xfs, fstests, darrick.wong, sandeen

On Fri, Jul 31, 2020 at 12:37:39PM -0500, Bill O'Donnell wrote:
> New xfs_quota kernel and xfsprogs add grace timers for group and project,
> in addition to existing user quota. Adjust xfs/518 to accommodate those
> changes, and avoid regression.
> 
> Signed-off-by: Bill O'Donnell <billodo@redhat.com>

This looks good to me. But it'd be great if the kernel & xfsprogs
commits that change the behavior could be mentioned in the commit log as
well.

Thanks,
Eryu

> ---
>  tests/xfs/518 | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/tests/xfs/518 b/tests/xfs/518
> index da39d8dc..c49c4e4d 100755
> --- a/tests/xfs/518
> +++ b/tests/xfs/518
> @@ -41,12 +41,12 @@ _qmount_option "usrquota"
>  _scratch_mount >> $seqres.full
>  
>  $XFS_QUOTA_PROG -x -c 'timer -u 300m' $SCRATCH_MNT
> -$XFS_QUOTA_PROG -x -c 'state' $SCRATCH_MNT | grep 'grace time'
> +$XFS_QUOTA_PROG -x -c 'state -u' $SCRATCH_MNT | grep 'grace time'
>  _scratch_unmount
>  
>  # Remount and check the limits
>  _scratch_mount >> $seqres.full
> -$XFS_QUOTA_PROG -x -c 'state' $SCRATCH_MNT | grep 'grace time'
> +$XFS_QUOTA_PROG -x -c 'state -u' $SCRATCH_MNT | grep 'grace time'
>  _scratch_unmount
>  
>  # Run repair to force quota check
> @@ -57,12 +57,12 @@ _scratch_xfs_repair >> $seqres.full 2>&1
>  # while the incore copy stays at whatever was read in prior to quotacheck.
>  # This will show up after the /next/ remount.
>  _scratch_mount >> $seqres.full
> -$XFS_QUOTA_PROG -x -c 'state' $SCRATCH_MNT | grep 'grace time'
> +$XFS_QUOTA_PROG -x -c 'state -u' $SCRATCH_MNT | grep 'grace time'
>  _scratch_unmount
>  
>  # Remount and check the limits
>  _scratch_mount >> $seqres.full
> -$XFS_QUOTA_PROG -x -c 'state' $SCRATCH_MNT | grep 'grace time'
> +$XFS_QUOTA_PROG -x -c 'state -u' $SCRATCH_MNT | grep 'grace time'
>  _scratch_unmount
>  
>  # success, all done
> -- 
> 2.26.2

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] xfs/518: modify timer/state commands to remove new g,p timer output
  2020-08-09 15:41 ` Eryu Guan
@ 2020-08-09 16:22   ` Eryu Guan
  0 siblings, 0 replies; 3+ messages in thread
From: Eryu Guan @ 2020-08-09 16:22 UTC (permalink / raw)
  To: Eryu Guan
  Cc: Bill O'Donnell, guaneryu, linux-xfs, fstests, darrick.wong, sandeen

On Sun, Aug 09, 2020 at 11:41:43PM +0800, Eryu Guan wrote:
> On Fri, Jul 31, 2020 at 12:37:39PM -0500, Bill O'Donnell wrote:
> > New xfs_quota kernel and xfsprogs add grace timers for group and project,
> > in addition to existing user quota. Adjust xfs/518 to accommodate those
> > changes, and avoid regression.
> > 
> > Signed-off-by: Bill O'Donnell <billodo@redhat.com>
> 
> This looks good to me. But it'd be great if the kernel & xfsprogs
> commits that change the behavior could be mentioned in the commit log as
> well.

Not a big deal, I'll take it this time :)

Thanks,
Eryu

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-09 16:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-31 17:37 [PATCH] xfs/518: modify timer/state commands to remove new g,p timer output Bill O'Donnell
2020-08-09 15:41 ` Eryu Guan
2020-08-09 16:22   ` Eryu Guan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).