diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2012-08-09 11:24:37 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2012-08-09 16:23:32 +0200 |
commit | 1f1c664b78d5f8464e0bbee5a00402cad93c7029 (patch) | |
tree | 2494d1967eb3c7cabf8d0d5ba6c3c4f7335082e5 | |
parent | de3b1c4506ff502f00a360a83800f35a31e1b42e (diff) | |
download | lvm2-1f1c664b78d5f8464e0bbee5a00402cad93c7029.tar.gz lvm2-1f1c664b78d5f8464e0bbee5a00402cad93c7029.tar.xz lvm2-1f1c664b78d5f8464e0bbee5a00402cad93c7029.zip |
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.
-rw-r--r-- | WHATS_NEW | 4 | ||||
-rw-r--r-- | lib/thin/thin.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -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 ================================= Issue error message when arguments do not match specified RAID type. diff --git a/lib/thin/thin.c b/lib/thin/thin.c index cfd50add..25c1947b 100644 --- a/lib/thin/thin.c +++ b/lib/thin/thin.c @@ -119,7 +119,7 @@ static int _thin_pool_text_import(struct lv_segment *seg, return SEG_LOG_ERROR("Could not read discards for"); if (!discards_str) - seg->discards = THIN_DISCARDS_PASSDOWN; + seg->discards = THIN_DISCARDS_IGNORE; else if (!get_pool_discards(discards_str, &seg->discards)) return SEG_LOG_ERROR("Discards option unsupported for"); |