mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cache: report cache pool attrs also for pools
Since cache-pool actualy keeps info about caching, display this info for cache-pool LV as well (matches info for cache LV when cache-pool is asociated with it).
This commit is contained in:
parent
cbe81ad393
commit
a4fdfc098d
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.129 -
|
Version 2.02.129 -
|
||||||
===================================
|
===================================
|
||||||
|
Fix and improve reporting properties of cache-pool.
|
||||||
Enable usage of --cachepolicy and --cachesetting with lvconvert.
|
Enable usage of --cachepolicy and --cachesetting with lvconvert.
|
||||||
Don't allow to reduce size of thin-pool metadata.
|
Don't allow to reduce size of thin-pool metadata.
|
||||||
Fix debug buffer overflows in cmirrord logging.
|
Fix debug buffer overflows in cmirrord logging.
|
||||||
|
@ -1344,7 +1344,7 @@ static int _cache_settings_disp(struct dm_report *rh, struct dm_pool *mem,
|
|||||||
|
|
||||||
if (seg_is_cache(seg))
|
if (seg_is_cache(seg))
|
||||||
seg = first_seg(seg->pool_lv);
|
seg = first_seg(seg->pool_lv);
|
||||||
else {
|
else if (!seg_is_cache_pool(seg)) {
|
||||||
dm_list_init(&dummy_list);
|
dm_list_init(&dummy_list);
|
||||||
return _field_set_string_list(rh, field, &dummy_list, private, 0);
|
return _field_set_string_list(rh, field, &dummy_list, private, 0);
|
||||||
/* TODO: once we have support for STR_LIST reserved values, replace with:
|
/* TODO: once we have support for STR_LIST reserved values, replace with:
|
||||||
@ -1384,7 +1384,7 @@ static int _cache_policy_disp(struct dm_report *rh, struct dm_pool *mem,
|
|||||||
|
|
||||||
if (seg_is_cache(seg))
|
if (seg_is_cache(seg))
|
||||||
seg = first_seg(seg->pool_lv);
|
seg = first_seg(seg->pool_lv);
|
||||||
else
|
else if (!seg_is_cache_pool(seg) || !seg->policy_name)
|
||||||
return _field_set_value(field, GET_FIRST_RESERVED_NAME(cache_policy_undef),
|
return _field_set_value(field, GET_FIRST_RESERVED_NAME(cache_policy_undef),
|
||||||
GET_FIELD_RESERVED_VALUE(cache_policy_undef));
|
GET_FIELD_RESERVED_VALUE(cache_policy_undef));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user