1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-18 10:04:20 +03:00

fix precedence

This commit is contained in:
Alasdair Kergon 2007-11-12 21:50:21 +00:00
parent a6b22cf317
commit 9a17ce30a0
2 changed files with 2 additions and 2 deletions

View File

@ -918,7 +918,7 @@ deactivate_and_revert_new_lv:
revert_new_lv:
/* FIXME Better to revert to backup of metadata? */
if (!lv_remove(lv) || !vg_write(vg) || backup(vg), !vg_commit(vg))
if (!lv_remove(lv) || !vg_write(vg) || (backup(vg), !vg_commit(vg)))
log_error("Manual intervention may be required to remove "
"abandoned LV(s) before retrying.");
return 0;

View File

@ -1415,7 +1415,7 @@ deactivate_and_revert_new_lv:
}
revert_new_lv:
if (!lv_remove(log_lv) || !vg_write(vg) || backup(vg), !vg_commit(vg))
if (!lv_remove(log_lv) || !vg_write(vg) || (backup(vg), !vg_commit(vg)))
log_error("Manual intervention may be required to remove "
"abandoned log LV before retrying.");
return NULL;