Re: [PATCH] xfs/096: filter out the "Discarding..." output

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



On Tue, Jun 09, 2020 at 04:24:42PM +0800, Zorro Lang wrote:
> Latest xfsprogs mkfs.xfs prints "Discarding blocks...Done" if the
> disk supports the trim. That breaks the golden image, cause
> unexpected failure, so filter out it.
> 
> Signed-off-by: Zorro Lang <zlang@xxxxxxxxxx>

Seems reasonable to me...
Reviewed-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx>

--D

> ---
>  tests/xfs/096 | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tests/xfs/096 b/tests/xfs/096
> index ef6136af..04bc7b7d 100755
> --- a/tests/xfs/096
> +++ b/tests/xfs/096
> @@ -78,6 +78,7 @@ mkfs_filter()
>  	-e 's/ ftype=[01]//' \
>  	-e '/^log stripe unit.*too large/d' \
>  	-e '/^log stripe unit adjusted/d' \
> +	-e '/Discarding/d' \
>     | grep -v parent
>  }
>  
> -- 
> 2.20.1
> 



[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