xfs/449: filter out "Discarding..." from output

xfsprogs 5.4 prints "Discarding..." if the disk supports the trim
command.  Filter this out of the output because xfs_info and friends
won't print that out.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Darrick J. Wong
2020-02-04 16:01:48 -08:00
committed by Eryu Guan
parent 1c5c2aa7f6
commit 1d22275b06
+1 -1
View File
@@ -39,7 +39,7 @@ _require_scratch_nocheck
_require_xfs_spaceman_command "info"
_require_command "$XFS_GROWFS_PROG" xfs_growfs
_scratch_mkfs > $tmp.mkfs
_scratch_mkfs | sed -e '/Discarding/d' > $tmp.mkfs
echo MKFS >> $seqres.full
cat $tmp.mkfs >> $seqres.full