]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
common/rc: Fix _require_batched_discard to skip test correctly
authorLiu Yiding <liuyd.fnst@fujitsu.com>
Tue, 31 May 2022 07:12:52 +0000 (15:12 +0800)
committerZorro Lang <zlang@kernel.org>
Thu, 2 Jun 2022 12:42:49 +0000 (20:42 +0800)
commitbc0373ef244eb3d3d47f0877cc62fe65315d8c0a
tree5bc9b4005ff24bc8a0116829a1dcd0ecc2c45743
parent03a72544ad16d07ef2a783445329b629a77ab3a6
common/rc: Fix _require_batched_discard to skip test correctly

xfstest commit ee264b3f ("common/rc: Modify _require_batched_discard to
improve test coverage") changed the way of determing if discard is
supported by checking whether fstrim output contains "not supported"
keywords.

On RHEL, fstrim output below info when discard is not supported
"fstrim: /mnt/share0/: FITRIM ioctl failed: Function not implemented"

Supplyment unsupported keywords to _require_batched_discard.

Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
Reviewed-by: David Disseldorp <ddiss@suse.de>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/rc