[PATCH blktests v2 01/18] nvme/rc: silence error on module unload for fc
Daniel Wagner
dwagner at suse.de
Fri Mar 22 06:49:58 PDT 2024
The other transports silence the error output when trying to unload the
module. Do the same for FC.
Signed-off-by: Daniel Wagner <dwagner at suse.de>
---
tests/nvme/rc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/nvme/rc b/tests/nvme/rc
index 2d6ebeab2f6f..78d84af72e73 100644
--- a/tests/nvme/rc
+++ b/tests/nvme/rc
@@ -332,7 +332,7 @@ _cleanup_nvmet() {
if [[ "${nvme_trtype}" == "fc" ]]; then
_cleanup_fcloop "${def_local_wwnn}" "${def_local_wwpn}" \
"${def_remote_wwnn}" "${def_remote_wwpn}"
- modprobe -rq nvme-fcloop
+ modprobe -rq nvme-fcloop 2>/dev/null
fi
modprobe -rq nvme-"${nvme_trtype}" 2>/dev/null
if [[ "${nvme_trtype}" != "loop" ]]; then
--
2.44.0
More information about the Linux-nvme
mailing list