xfs/096: filter out the "Discarding..." output

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@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Zorro Lang
2020-06-09 16:24:42 +08:00
committed by Eryu Guan
parent 8e1388f521
commit f6da66ec96
+1
View File
@@ -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
}