]> sourceware.org Git - lvm2.git/commitdiff
thin: default discards for old mda is IGNORE
authorZdenek Kabelac <zkabelac@redhat.com>
Thu, 9 Aug 2012 09:24:37 +0000 (11:24 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 9 Aug 2012 14:23:32 +0000 (16:23 +0200)
If the discard was not set in metadata, use IGNORE, as this
is the equivalent behavior for this case.

WHATS_NEW
lib/thin/thin.c

index fd741bb6c5c73e7322e875ebf9ead5d7040bea1f..c7d3a2d520320b5971dec9647025cf7d468eb295 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -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.
index cfd50add008e3955f6fa98f826012e53290f5f07..25c1947bf9f8da4b6c84483cc53c153f2c6b7cee 100644 (file)
@@ -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");
 
This page took 0.045867 seconds and 5 git commands to generate.