summaryrefslogtreecommitdiff
path: root/tools/vgexport.c
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2021-06-08 19:02:07 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2021-06-09 14:56:13 +0200
commitba3707d9539f9cc2e72c5368388ae795776379af (patch)
treeb4306b32ec84aa2dc438afffb88b2b193e0d4b54 /tools/vgexport.c
parentdf27392c8c9ec5d1efd92c2214805471473f2a06 (diff)
downloadlvm2-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/vgexport.c')
-rw-r--r--tools/vgexport.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/tools/vgexport.c b/tools/vgexport.c
index 86dad3abb..15cc3dd75 100644
--- a/tools/vgexport.c
+++ b/tools/vgexport.c
@@ -45,10 +45,6 @@ static int vgexport_single(struct cmd_context *cmd __attribute__((unused)),
}
}
-
- if (!archive(vg))
- goto_bad;
-
vg->status |= EXPORTED_VG;
vg->system_id = NULL;