1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-21 22:04:19 +03:00

lvconvert: add infrastructure for RaidLV reshaping support

In order to support striped raid5/6/10 LV reshaping (change
of LV type, stripesize or number of legs), this patch
introduces more local infrastructure to raid_manip.c
used by followup patches.

Change:
- allow raid_rimage_extents() to calculate raid10
- remove an __unused__ attribute

Related: rhbz834579
Related: rhbz1191935
Related: rhbz1191978
This commit is contained in:
Heinz Mauelshagen 2017-02-24 04:00:17 +01:00
parent 1784cc990e
commit f79bd30a8b

View File

@ -1135,8 +1135,7 @@ uint32_t raid_rimage_extents(const struct segment_type *segtype,
uint64_t r;
if (!extents ||
segtype_is_mirror(segtype) ||
segtype_is_raid1(segtype))
segtype_is_striped_raid(segtype))
return extents;
r = extents;
@ -1576,7 +1575,6 @@ static int _lv_free_reshape_space_with_status(struct logical_volume *lv, enum al
return 1;
}
__attribute__ ((__unused__))
static int _lv_free_reshape_space(struct logical_volume *lv)
{
return _lv_free_reshape_space_with_status(lv, NULL);