From: Zdenek Kabelac Date: Mon, 20 May 2024 12:47:02 +0000 (+0200) Subject: error: try with modprobe X-Git-Tag: v2_03_25~117 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=2e0ac979038efa512953e246998c06236f82eb95;p=lvm2.git error: try with modprobe If the error target would be built as module, ask modprobe to load it if the target is not present. --- diff --git a/lib/error/errseg.c b/lib/error/errseg.c index 50f3b8c90..4872eab50 100644 --- a/lib/error/errseg.c +++ b/lib/error/errseg.c @@ -56,8 +56,8 @@ static int _errseg_target_present(struct cmd_context *cmd, /* Reported truncated in older kernels */ if (!_errseg_checked) { _errseg_checked = 1; - _errseg_present = target_present(cmd, TARGET_NAME_ERROR, 0) || - target_present(cmd, TARGET_NAME_ERROR_OLD, 0); + _errseg_present = target_present(cmd, TARGET_NAME_ERROR, 1) || + target_present(cmd, TARGET_NAME_ERROR_OLD, 1); } return _errseg_present;