diff --git a/WHATS_NEW b/WHATS_NEW index 4c662c186..deb03388e 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.99 - =================================== + Avoid generating metadata backup when calling update_pool_lv(). Send thin messages also for active thin pool and inactive thin volume. Add activation/auto_set_activation_skip to control activation skip flagging. Add 's(k)ip activation' bit to lvs -o lv_attr to indicate skip flag attached. diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c index 87f30f7eb..5ec2bd092 100644 --- a/lib/metadata/lv_manip.c +++ b/lib/metadata/lv_manip.c @@ -4053,8 +4053,6 @@ int lv_resize(struct cmd_context *cmd, struct logical_volume *lv, if (!monitor_dev_for_events(cmd, lv, 0, 0)) stack; - backup(vg); - /* * Update lvm pool metadata (drop messages) if the pool has been * resumed and do a pool active/deactivate in other case. @@ -4067,6 +4065,8 @@ int lv_resize(struct cmd_context *cmd, struct logical_volume *lv, !update_pool_lv(lv, !lv_is_active(lv))) return_0; + backup(vg); + log_print_unless_silent("Logical volume %s successfully resized", lp->lv_name); if (lp->resizefs && (lp->resize == LV_EXTEND) && diff --git a/lib/metadata/thin_manip.c b/lib/metadata/thin_manip.c index 5b1b440f1..4f6e2ece5 100644 --- a/lib/metadata/thin_manip.c +++ b/lib/metadata/thin_manip.c @@ -558,8 +558,6 @@ int update_pool_lv(struct logical_volume *lv, int activate) if (!vg_write(lv->vg) || !vg_commit(lv->vg)) return_0; - backup(lv->vg); - return 1; }