'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.
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.
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(" ");