]> sourceware.org Git - lvm2.git/commitdiff
error: try with modprobe
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 20 May 2024 12:47:02 +0000 (14:47 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 27 May 2024 13:16:26 +0000 (15:16 +0200)
If the error target would be built as module,
ask modprobe to load it if the target is not present.

lib/error/errseg.c

index 50f3b8c9022420b18bd5450012313ca319637615..4872eab50e7fad8b044b0dc2714711ba5673e998 100644 (file)
@@ -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;
This page took 0.03789 seconds and 5 git commands to generate.