1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-24 17:57:48 +03:00

reinstate !first_time check

(recovery from first_time failure would need different code)
This commit is contained in:
Alasdair Kergon 2011-12-08 18:06:33 +00:00
parent 909bf00ab4
commit 7a5b7def16

View File

@ -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;
}