From 15d7886699ab97543fccc18ae7b1505775d9338e Mon Sep 17 00:00:00 2001 From: Jonathan Earl Brassow Date: Wed, 28 Apr 2010 17:41:30 +0000 Subject: [PATCH] Don't attempt to convert the log type of an LV if the LV is not a mirror. --- tools/lvconvert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lvconvert.c b/tools/lvconvert.c index c280d1abf..86a0d7df5 100644 --- a/tools/lvconvert.c +++ b/tools/lvconvert.c @@ -1074,7 +1074,7 @@ out: /* * Converting the log type */ - if (old_log_count != new_log_count) { + if ((lv->status & MIRRORED) && (old_log_count != new_log_count)) { if (!_lv_update_log_type(cmd, lp, lv, operable_pvs, new_log_count)) { stack;