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

mirror: Add deprecation warning for mirrored log

This commit is contained in:
Marian Csontos 2018-02-14 12:46:08 +01:00
parent dd6fbcbb69
commit d67f160200
2 changed files with 9 additions and 0 deletions

View File

@ -1945,6 +1945,10 @@ int add_mirror_log(struct cmd_context *cmd, struct logical_volume *lv,
return 1;
}
if (log_count > 1) {
log_warn("Log type \"mirrored\" is DEPRECATED and will be removed in the future. Use RAID1 LV or disk log instead.");
}
if (!(parallel_areas = build_parallel_areas_from_lv(lv, 0, 0)))
return_0;

View File

@ -1216,6 +1216,11 @@ static int _lvconvert_mirrors(struct cmd_context *cmd,
(old_log_count == new_log_count))
return 1;
if ((old_log_count != new_log_count) &&
(new_log_count == MIRROR_LOG_MIRRORED)) {
log_warn("Log type \"mirrored\" is DEPRECATED and will be removed in the future. Use RAID1 LV or disk log instead.");
}
if (!_lvconvert_mirrors_aux(cmd, lv, lp, NULL,
new_mimage_count, new_log_count, lp->pvh))
return_0;