xfs/096: filter out the "Discarding..." output
PATCH 1/1 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 <[email protected]>
--- tests/xfs/096 | 1 + 1 file changed, 1 insertion(+)
tests/xfs/096 +1 -0
@@ -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 }
Signature · 1 line
2.20.1
Quoted 5 lines · Zorro Lang
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 <[email protected]>
Seems reasonable to me...
Reviewed-by Darrick J. Wong <[email protected]>
--D
Quoted 19 lines
--- tests/xfs/096 | 1 + 1 file changed, 1 insertion(+)tests/xfs/096 +1
-0@@ -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 }Signature · 1 line
2.20.1