]> sourceware.org Git - lvm2.git/commitdiff
raid: Fix partial activation logic for non-raid. v2_02_108
authorAlasdair G Kergon <agk@redhat.com>
Wed, 23 Jul 2014 15:13:12 +0000 (16:13 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Wed, 23 Jul 2014 15:13:12 +0000 (16:13 +0100)
lib/activate/activate.c

index ebeaa794638b5b5066339c67b13055c6530e1f6e..1230c9aa041b46a089376512f7db06d2f72e802c 100644 (file)
@@ -2224,8 +2224,8 @@ static int _lv_activate(struct cmd_context *cmd, const char *lvid_s,
                goto out;
        }
 
-       if ((!lv->vg->cmd->partial_activation) && (lv->status & PARTIAL_LV) && lv_is_raid_type(lv)) {
-               if (!partial_raid_lv_supports_degraded_activation(lv)) {
+       if ((!lv->vg->cmd->partial_activation) && (lv->status & PARTIAL_LV)) {
+               if (!lv_is_raid_type(lv) || !partial_raid_lv_supports_degraded_activation(lv)) {
                        log_error("Refusing activation of partial LV %s.  "
                                  "Use '--activationmode partial' to override.",
                                  display_lvname(lv));
This page took 0.041734 seconds and 5 git commands to generate.