]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
common: handle old versions of modprobe which don't support --help
authorTheodore Ts'o <tytso@mit.edu>
Tue, 1 Feb 2022 23:19:36 +0000 (18:19 -0500)
committerEryu Guan <guaneryu@gmail.com>
Sun, 13 Feb 2022 17:07:19 +0000 (01:07 +0800)
commitccbbd09981c762d865a5198f6fe31b2f07bbc274
treed125e533739891b2f1a30405bf238764577f6d44
parent290e6c83e8d8232a98c0bf154ea3c6d7e7a09b0d
common: handle old versions of modprobe which don't support --help

There exists versions of modprobe out there which are so old that
modprobe --help isn't a thing.  They're certainly not going to support
modprobe --remove-patiently, so test to make sure modprobe --help
works to avoid causing all tests to fail due to the error message
to stderr showing up in $seq.out.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Fixes: 405c21d40aa1 ("common/module: add patient module rmmod support")
Reported-by: Leah Rumancik <leah.rumancik@gmail.com>
Cc: Luis Chamberlain <mcgrof@kernel.org>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/config