summaryrefslogtreecommitdiff
path: root/lib/format_text
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2021-06-08 19:39:15 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2021-06-09 14:56:13 +0200
commitbb45e33518b56a06df8a52226e383ca9ce938d0d (patch)
tree54196e9034b45e1bce07643dddeb16565de23323 /lib/format_text
parentba3707d9539f9cc2e72c5368388ae795776379af (diff)
downloadlvm2-bb45e33518b56a06df8a52226e383ca9ce938d0d.tar.gz
backup: automatically store data on vg_unlock
Previously there have been necessary explicit call of backup (often either forgotten or over-used). With this patch the necessity to store backup is remember at vg_commit and once the VG is unlocked, the committed metadata are automatically store in backup file. This may possibly alter some printed messages from command when the backup is now taken later.
Diffstat (limited to 'lib/format_text')
-rw-r--r--lib/format_text/archiver.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/format_text/archiver.c b/lib/format_text/archiver.c
index 68117f7dc..f1590b460 100644
--- a/lib/format_text/archiver.c
+++ b/lib/format_text/archiver.c
@@ -279,7 +279,6 @@ 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);