Version 2.02.178 -
=====================================
+ Disallow usage of cache format 2 with mq cache policy.
Again accept striped LV as COW LV with lvconvert -s (2.02.169).
Fix raid target version testing for supported features.
Allow activation of pools when thin/cache_check tool is missing.
return 0;
}
+ /*
+ * If policy is unselected, but format 2 is selected, policy smq is enforced.
+ * ATM no other then smq policy is allowed to select format 2.
+ */
+ if (!seg->policy_name) {
+ if (format == CACHE_METADATA_FORMAT_2)
+ seg->policy_name = "smq";
+ } else if (strcmp(seg->policy_name, "smq")) {
+ seg->cache_metadata_format = CACHE_METADATA_FORMAT_1;
+ return 1;
+ }
+
/* Check if we need to search for configured cache metadata format */
if (format == CACHE_METADATA_FORMAT_UNSELECTED) {
if (seg->cache_metadata_format != CACHE_METADATA_FORMAT_UNSELECTED)
struct lv_segment *pool_seg;
struct cmd_context *cmd = seg->lv->vg->cmd;
- if (!cache_set_metadata_format(seg, format))
- return_0;
-
if (!cache_set_cache_mode(seg, mode))
return_0;
if (!cache_set_policy(seg, policy_name, policy_settings))
return_0;
+ if (!cache_set_metadata_format(seg, format))
+ return_0;
+
pool_seg = seg_is_cache(seg) ? first_seg(seg->pool_lv) : seg;
if (chunk_size) {