]> sourceware.org Git - lvm2.git/commitdiff
Don't attempt to convert the log type of an LV if the LV
authorJonathan Earl Brassow <jbrassow@redhat.com>
Wed, 28 Apr 2010 17:41:30 +0000 (17:41 +0000)
committerJonathan Earl Brassow <jbrassow@redhat.com>
Wed, 28 Apr 2010 17:41:30 +0000 (17:41 +0000)
is not a mirror.

tools/lvconvert.c

index c280d1abf77c7b9e22a233928be839717609d151..86a0d7df5f9da6c3f7c2d0e18225cf426760cb99 100644 (file)
@@ -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;
This page took 0.036568 seconds and 5 git commands to generate.