mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-30 17:18:21 +03:00
error: try with modprobe
If the error target would be built as module, ask modprobe to load it if the target is not present.
This commit is contained in:
parent
9a371639fc
commit
2e0ac97903
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user