mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cache: drop metadata_format validation
Allow to use any combination of cache metadata format for policy.
This commit is contained in:
parent
9adae653e9
commit
c34291e3bf
@ -1,5 +1,6 @@
|
||||
Version 3.0.0
|
||||
=============
|
||||
Do not pair cache policy and cache metadata format.
|
||||
lvconvert: reject conversions on raid1 LVs with split tracked SubLVs
|
||||
lvconvert: reject conversions on raid1 split tracked SubLVs
|
||||
Add basic creation support for VDO target.
|
||||
|
@ -842,15 +842,10 @@ int cache_set_metadata_format(struct lv_segment *seg, cache_metadata_format_t fo
|
||||
|
||||
/*
|
||||
* If policy is unselected, but format 2 is selected, policy smq is enforced.
|
||||
* ATM no other then smq & cleaner 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") &&
|
||||
strcmp(seg->policy_name, "cleaner")) {
|
||||
seg->cache_metadata_format = CACHE_METADATA_FORMAT_1;
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* Check if we need to search for configured cache metadata format */
|
||||
|
Loading…
Reference in New Issue
Block a user