mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
raid: fix version check of target
Comparision missed to check patch level for matching minor version. Howerver since all checked patchlevels were 0 - the fix doesn't change result.
This commit is contained in:
parent
689af32313
commit
67fbe980a7
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.178 -
|
Version 2.02.178 -
|
||||||
=====================================
|
=====================================
|
||||||
|
Fix raid target version testing for supported features.
|
||||||
Allow activation of pools when thin/cache_check tool is missing.
|
Allow activation of pools when thin/cache_check tool is missing.
|
||||||
Remove RaidLV on creation failure when rmeta devices can't be activated.
|
Remove RaidLV on creation failure when rmeta devices can't be activated.
|
||||||
Add prioritized_section() to restore cookie boundaries (2.02.177).
|
Add prioritized_section() to restore cookie boundaries (2.02.177).
|
||||||
|
@ -464,7 +464,7 @@ struct raid_feature {
|
|||||||
static int _check_feature(const struct raid_feature *feature, uint32_t maj, uint32_t min, uint32_t patchlevel)
|
static int _check_feature(const struct raid_feature *feature, uint32_t maj, uint32_t min, uint32_t patchlevel)
|
||||||
{
|
{
|
||||||
return (maj > feature->maj) ||
|
return (maj > feature->maj) ||
|
||||||
(maj == feature->maj && min >= feature->min) ||
|
(maj == feature->maj && min > feature->min) ||
|
||||||
(maj == feature->maj && min == feature->min && patchlevel >= feature->patchlevel);
|
(maj == feature->maj && min == feature->min && patchlevel >= feature->patchlevel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user