With "cleaner" policy always use 'writethrough' mode.
Version 1.02.110 -
======================================
+ Enforce writethrough mode for cleaner policy.
Add support for recognition and deactivation of MD devices to blkdeactivate.
Move target status functions out of libdm-deptree.
Correct use of max_write_behind parameter when generating raid target line.
return_0;
seg->data_block_size = data_block_size;
- seg->flags = feature_flags;
+ /* Enforce WriteThough mode for cleaner policy */
+ seg->flags = (strcmp(policy_name, "cleaner") == 0) ? DM_CACHE_FEATURE_WRITETHROUGH : feature_flags;
seg->policy_name = policy_name;
/* FIXME: better validation missing */