}
}
+ if (lv_is_cache_pool(lv) && !origin_lv) {
+ if (lp->cache_policy && !lv_cache_setpolicy(lv, lp->cache_policy))
+ return NULL; /* revert? */
+ if (!lv_update_and_reload(lv))
+ return NULL; /* FIXME: revert */
+ }
+
if (seg_is_cache(lp) || (origin_lv && lv_is_cache_pool(lv))) {
/* Finish cache conversion magic */
if (origin_lv) {
}
}
lv = tmp_lv;
+
+ if (lp->cache_policy && !lv_cache_setpolicy(lv, lp->cache_policy))
+ return NULL; /* revert? */
+
if (!lv_update_and_reload(lv)) {
/* FIXME Do a better revert */
log_error("Aborting. Manual intervention required.");
uint32_t max_recovery_rate; /* RAID */
uint64_t feature_flags; /* cache */
+ struct dm_config_tree *cache_policy; /* cache */
const struct segment_type *segtype; /* all */
unsigned target_attr; /* all */