]> sourceware.org Git - lvm2.git/commitdiff
raid: ensure enum is defined
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 30 Jun 2017 17:34:52 +0000 (19:34 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 30 Jun 2017 18:39:02 +0000 (20:39 +0200)
Just making sure enum is always defined.

TODO: code path using this enum needs closer inspection.

lib/metadata/raid_manip.c

index 110a7d38214feb7fe6c2cddef94ca6764b5e0024..df7e062e1abf2d18905c410116cbe3a38b4d7cee 100644 (file)
@@ -2232,7 +2232,7 @@ static int _raid_reshape(struct logical_volume *lv,
        int force_repair = 0, r, too_few = 0;
        unsigned devs_health, devs_in_sync;
        uint32_t new_image_count, old_image_count;
-       enum alloc_where where_it_was;
+       enum alloc_where where_it_was = alloc_none;
        struct lv_segment *seg = first_seg(lv);
        struct dm_list removal_lvs;
 
This page took 0.037448 seconds and 5 git commands to generate.