diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2021-06-08 19:02:07 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-06-09 14:56:13 +0200 |
commit | ba3707d9539f9cc2e72c5368388ae795776379af (patch) | |
tree | b4306b32ec84aa2dc438afffb88b2b193e0d4b54 /tools/pvmove.c | |
parent | df27392c8c9ec5d1efd92c2214805471473f2a06 (diff) | |
download | lvm2-ba3707d9539f9cc2e72c5368388ae795776379af.tar.gz |
archiving: take archive automatically
Instead of calling explicit archive with command processing logic,
move this step towards 1st. vg_write() call, which will automatically
store archive of committed metadata.
This slightly changes some error path where the error in archiving
was detected earlier in the command, while now some on going command
'actions' might have been, but will be simply scratched in case
of error (since even new metadata would not have been even written).
So general effect should be only some command message ordering.
Diffstat (limited to 'tools/pvmove.c')
-rw-r--r-- | tools/pvmove.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/pvmove.c b/tools/pvmove.c index bb372f7dc..ed92f3ce4 100644 --- a/tools/pvmove.c +++ b/tools/pvmove.c @@ -709,9 +709,6 @@ static int _pvmove_setup_single(struct cmd_context *cmd, vg, pv, pp->alloc))) goto_out; - if (!archive(vg)) - goto_out; - if (!(lv_mirr = _set_up_pvmove_lv(cmd, vg, source_pvl, lv_name, allocatable_pvs, pp->alloc, &lvs_changed, &exclusive))) |