]> sourceware.org Git - lvm2.git/commitdiff
mirror: Add deprecation warning for mirrored log
authorMarian Csontos <mcsontos@redhat.com>
Wed, 14 Feb 2018 11:46:08 +0000 (12:46 +0100)
committerMarian Csontos <mcsontos@redhat.com>
Wed, 14 Feb 2018 12:32:04 +0000 (13:32 +0100)
lib/metadata/mirror.c
tools/lvconvert.c

index 38c3df679f0be03477e758695a2b2c07d9cff199..71d3457bc3c6145a4eafdb91a379ebc51132251f 100644 (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;
 
index fee0a4ef8cb99ea07f921a469cbd8b9317adcc62..e18ec236ff61328272793bdb34f5344290d5e745 100644 (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;
This page took 0.040971 seconds and 5 git commands to generate.