mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
thin: default discards for old mda is IGNORE
If the discard was not set in metadata, use IGNORE, as this is the equivalent behavior for this case.
This commit is contained in:
parent
de3b1c4506
commit
1f1c664b78
@ -1,3 +1,7 @@
|
|||||||
|
Version 2.02.98
|
||||||
|
=================================
|
||||||
|
Use 'ignore' discards for thin metadata created with older versions.
|
||||||
|
|
||||||
Version 2.02.97 - 7th August 2012
|
Version 2.02.97 - 7th August 2012
|
||||||
=================================
|
=================================
|
||||||
Issue error message when arguments do not match specified RAID type.
|
Issue error message when arguments do not match specified RAID type.
|
||||||
|
@ -119,7 +119,7 @@ static int _thin_pool_text_import(struct lv_segment *seg,
|
|||||||
return SEG_LOG_ERROR("Could not read discards for");
|
return SEG_LOG_ERROR("Could not read discards for");
|
||||||
|
|
||||||
if (!discards_str)
|
if (!discards_str)
|
||||||
seg->discards = THIN_DISCARDS_PASSDOWN;
|
seg->discards = THIN_DISCARDS_IGNORE;
|
||||||
else if (!get_pool_discards(discards_str, &seg->discards))
|
else if (!get_pool_discards(discards_str, &seg->discards))
|
||||||
return SEG_LOG_ERROR("Discards option unsupported for");
|
return SEG_LOG_ERROR("Discards option unsupported for");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user