]> www.infradead.org Git - users/sagi/blktests.git/commit
common/rc: support compressed module files
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Mon, 12 Sep 2022 05:46:00 +0000 (14:46 +0900)
committerShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Tue, 20 Sep 2022 08:03:43 +0000 (17:03 +0900)
commit3d00f3ee112bc87d32e4bfce519c4697b48a0b41
treeb18636cd83356c958a513de96427fef2c9bf91b5
parente2c951e43e0bf04970a7ff7dc3fd94082ac9c7be
common/rc: support compressed module files

The commit 8017ea524367 ("common/rc: ensure modules are loadable in
_have_modules()") introduced a helper function _module_file_exists()
which assumes module files have extension ".ko". However, the assumption
is not true when module files are compressed. In this case, extensions
of modules files have abbreviations of compression algorithm such as
".ko.xz",".ko.gz" or ".ko.zstd". This results in module file existence
check failure and unexpected test skips.

Fix this by changing module file search condition to cover module file
extensions with the compression algorithm abbreviations.

Fixes: 8017ea524367 ("common/rc: ensure modules are loadable in _have_modules()")
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Link: https://github.com/osandov/blktests/issues/101
common/rc