]> sourceware.org Git - lvm2.git/commitdiff
Stop processing lvextend if trying to extend a mirror that is being recovered.
authorPeter Rajnoha <prajnoha@redhat.com>
Thu, 9 Feb 2012 15:13:42 +0000 (15:13 +0000)
committerPeter Rajnoha <prajnoha@redhat.com>
Thu, 9 Feb 2012 15:13:42 +0000 (15:13 +0000)
Missing correct return value in lv_extend fn.

WHATS_NEW
lib/metadata/lv_manip.c

index 5fed8a70482daedfed0dfd982171f45faf5307aa..14960a5029ca076292d40bc2080b85e205ce58c1 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.02.91 -
 ===================================
+  Stop processing lvextend if trying to extend a mirror that is being recovered.
   Add pool_below_threshold() function to check thin pool percent status.
   Fix test for snap percent for failing merge when removing LV.
   Switch int to void return for str_list_del().
index da52e59d925aa8c1b5c2f79dbed6e44a1de5617a..f13a33f8ba2b48bd8051451b3669426d41a53133 100644 (file)
@@ -2674,6 +2674,7 @@ int lv_extend(struct logical_volume *lv,
                                log_error("%s/%s cannot be extended while"
                                          " it is recovering.",
                                          lv->vg->name, lv->name);
+                               r = 0;
                                goto out;
                        }
                }
This page took 0.042982 seconds and 5 git commands to generate.