1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

dev_manager: failing status is not internal error

Different target type for LV it's not an internal error.
i.e.  when target type is replaced with 'error' type - it should be
reported as regular warning and not cause interruption of command with
internall error.
This commit is contained in:
Zdenek Kabelac 2022-02-15 21:16:10 +01:00
parent 6ffb150f30
commit c2679f76e5

View File

@ -204,7 +204,7 @@ static int _get_segment_status_from_target_params(const char *target_name,
/* If kernel's type isn't an exact match is it compatible? */ /* If kernel's type isn't an exact match is it compatible? */
(!segtype->ops->target_status_compatible || (!segtype->ops->target_status_compatible ||
!segtype->ops->target_status_compatible(target_name))) { !segtype->ops->target_status_compatible(target_name))) {
log_warn(INTERNAL_ERROR "WARNING: Segment type %s found does not match expected type %s for %s.", log_warn("WARNING: Detected %s segment type does not match expected type %s for %s.",
target_name, segtype->name, display_lvname(seg_status->seg->lv)); target_name, segtype->name, display_lvname(seg_status->seg->lv));
return 0; return 0;
} }