From: Alasdair Kergon Date: Thu, 8 Dec 2011 18:06:33 +0000 (+0000) Subject: reinstate !first_time check X-Git-Tag: v2_02_91~215 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=7a5b7def16971acb38a3245d2b19295514d7f137;p=lvm2.git reinstate !first_time check (recovery from first_time failure would need different code) --- diff --git a/tools/pvmove.c b/tools/pvmove.c index 9f026b7d4..1e62f69c7 100644 --- a/tools/pvmove.c +++ b/tools/pvmove.c @@ -370,8 +370,8 @@ static int _update_metadata(struct cmd_context *cmd, struct volume_group *vg, if (!_suspend_lvs(cmd, first_time, lv_mirr, lvs_changed, vg)) { log_error("ABORTING: Volume group metadata update failed. (first_time: %d)", first_time); - //FIXME: - currently this check breaks pvmove testing - if (/*!first_time &&*/ !revert_lv(cmd, lv_mirr)) + /* FIXME Add a recovery path for first time too. */ + if (!first_time && !revert_lv(cmd, lv_mirr)) stack; return 0; }