mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cache: fix lvdisplay --maps
'lvdisplay -m' tried to go through NULL policy settings, when such policy was not defined for CachedLV. Patch is fixing display of cache-pool without defined settings, as this is now a valid pool and we mostly want users to define these settings when actually really caching a LV.
This commit is contained in:
parent
58a9f88b8c
commit
732928dda8
@ -1,5 +1,6 @@
|
||||
Version 2.02.172 -
|
||||
===============================
|
||||
Fix lvdisplay --maps for cache pool without policy settings.
|
||||
Avoid using origin_only manipulation with cached device.
|
||||
Support aborting of flushing cache LV.
|
||||
Reenable conversion of data and metadata thin-pool volumes to raid.
|
||||
|
@ -55,7 +55,8 @@ static void _cache_display(const struct lv_segment *seg)
|
||||
log_print(" Mode\t\t%s", get_cache_mode_name(pool_seg));
|
||||
log_print(" Policy\t\t%s", pool_seg->policy_name);
|
||||
|
||||
if ((n = pool_seg->policy_settings->child))
|
||||
if (pool_seg->policy_settings &&
|
||||
(n = pool_seg->policy_settings->child))
|
||||
dm_config_write_node(n, _cache_out_line, NULL);
|
||||
|
||||
log_print(" ");
|
||||
|
Loading…
Reference in New Issue
Block a user