]> sourceware.org Git - lvm2.git/commitdiff
lv_manip: remove vg_revert
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 8 Sep 2014 20:39:58 +0000 (22:39 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 9 Sep 2014 17:15:26 +0000 (19:15 +0200)
vg_commit is supposed to have implicit revert handling.
(however as of now it needs fixes).

lib/metadata/lv_manip.c

index 73744848f7c060ac0aaba24a24e61dbd95aa664a..cec9f8452d70158b9a8cf3ac1c420c7ab11b8854 100644 (file)
@@ -6096,7 +6096,6 @@ struct logical_volume *insert_layer_for_lv(struct cmd_context *cmd,
 
                if (!vg_commit(lv_where->vg)) {
                        log_error("Failed to commit intermediate VG %s metadata for mirror conversion.", lv_where->vg->name);
-                       vg_revert(lv_where->vg);
                        return NULL;
                }
 
This page took 0.043969 seconds and 5 git commands to generate.