diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2021-06-08 19:39:15 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-06-09 14:56:13 +0200 |
commit | bb45e33518b56a06df8a52226e383ca9ce938d0d (patch) | |
tree | 54196e9034b45e1bce07643dddeb16565de23323 /tools/toollib.c | |
parent | ba3707d9539f9cc2e72c5368388ae795776379af (diff) | |
download | lvm2-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 'tools/toollib.c')
-rw-r--r-- | tools/toollib.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/toollib.c b/tools/toollib.c index f337f9fcf..338551015 100644 --- a/tools/toollib.c +++ b/tools/toollib.c @@ -3224,8 +3224,6 @@ int process_each_lv_in_vg(struct cmd_context *cmd, struct volume_group *vg, if (vg->needs_write_and_commit && (ret_max == ECMD_PROCESSED) && (!vg_write(vg) || !vg_commit(vg))) ret_max = ECMD_FAILED; - else if (vg->needs_backup) - backup(vg); if (lvargs_supplied) { /* |