From 9a17ce30a014a551ab3fc25f112b3607ae5498a1 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Mon, 12 Nov 2007 21:50:21 +0000 Subject: [PATCH] fix precedence --- tools/lvcreate.c | 2 +- tools/toollib.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/lvcreate.c b/tools/lvcreate.c index fa6d88354..fc68d4f43 100644 --- a/tools/lvcreate.c +++ b/tools/lvcreate.c @@ -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; diff --git a/tools/toollib.c b/tools/toollib.c index 0220eb568..1f0f25fa9 100644 --- a/tools/toollib.c +++ b/tools/toollib.c @@ -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; -- 2.43.5