mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
libdm: enforce writethrough mode for cleaner
With "cleaner" policy always use 'writethrough' mode.
This commit is contained in:
parent
5ac81657e5
commit
5695c6aca6
@ -1,5 +1,6 @@
|
|||||||
Version 1.02.110 -
|
Version 1.02.110 -
|
||||||
======================================
|
======================================
|
||||||
|
Enforce writethrough mode for cleaner policy.
|
||||||
Add support for recognition and deactivation of MD devices to blkdeactivate.
|
Add support for recognition and deactivation of MD devices to blkdeactivate.
|
||||||
Move target status functions out of libdm-deptree.
|
Move target status functions out of libdm-deptree.
|
||||||
Correct use of max_write_behind parameter when generating raid target line.
|
Correct use of max_write_behind parameter when generating raid target line.
|
||||||
|
@ -3302,7 +3302,8 @@ int dm_tree_node_add_cache_target(struct dm_tree_node *node,
|
|||||||
return_0;
|
return_0;
|
||||||
|
|
||||||
seg->data_block_size = data_block_size;
|
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;
|
seg->policy_name = policy_name;
|
||||||
|
|
||||||
/* FIXME: better validation missing */
|
/* FIXME: better validation missing */
|
||||||
|
Loading…
Reference in New Issue
Block a user