mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
cache-pool: Fix specification of cachemode when converting to cache-pool
Failure to copy the 'feature_flags' lvconvert_param to the matching lv_segment field meant that when a user specified the cachemode argument, the request was not honored.
This commit is contained in:
parent
b87a7683e2
commit
9d57aa9a0f
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.112 -
|
Version 2.02.112 -
|
||||||
=====================================
|
=====================================
|
||||||
|
Fix inablility to specify cachemode when 'lvconvert'ing to cache-pool.
|
||||||
Disable vgchange of clustered attribute with any active LV in VG.
|
Disable vgchange of clustered attribute with any active LV in VG.
|
||||||
Use va_copy to properly pass va_list through functions.
|
Use va_copy to properly pass va_list through functions.
|
||||||
Add function to detect rotational devices.
|
Add function to detect rotational devices.
|
||||||
|
@ -2925,6 +2925,7 @@ mda_write:
|
|||||||
seg->chunk_size = lp->chunk_size;
|
seg->chunk_size = lp->chunk_size;
|
||||||
seg->discards = lp->discards;
|
seg->discards = lp->discards;
|
||||||
seg->zero_new_blocks = lp->zero ? 1 : 0;
|
seg->zero_new_blocks = lp->zero ? 1 : 0;
|
||||||
|
seg->feature_flags = lp->feature_flags; /* cache-pool */
|
||||||
|
|
||||||
/* Rename deactivated metadata LV to have _tmeta suffix */
|
/* Rename deactivated metadata LV to have _tmeta suffix */
|
||||||
/* Implicit checks if metadata_lv is visible */
|
/* Implicit checks if metadata_lv is visible */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user