summaryrefslogtreecommitdiff
path: root/lib/format_text
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2021-02-26 01:01:29 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2021-03-02 22:54:40 +0100
commiteb1160ee4230e6f37707b19eb5b46d2446257500 (patch)
treea3608fa8789827120d4d3766c442deb76a5c3109 /lib/format_text
parentfa64c51428ca20e860bbe21338d916329b8aaf25 (diff)
downloadlvm2-eb1160ee4230e6f37707b19eb5b46d2446257500.tar.gz
lvremove: backup at the end of loop
Taking backup with each removed LV is slowing down the process considerable and is largerly uneeded. We are supposed to take backup only on significant points and making sure the backup is correct when the command is finished. TODO: check how many other commands can be improved.
Diffstat (limited to 'lib/format_text')
-rw-r--r--lib/format_text/archiver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/format_text/archiver.c b/lib/format_text/archiver.c
index 07e9b04e4..cb8fc07de 100644
--- a/lib/format_text/archiver.c
+++ b/lib/format_text/archiver.c
@@ -267,6 +267,8 @@ int backup_locally(struct volume_group *vg)
int backup(struct volume_group *vg)
{
+ vg->needs_backup = 0;
+
/* Unlock memory if possible */
memlock_unlock(vg->cmd);