From ba3d3210d7fb2ad0379b90869c1e38167346091b Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 5 Jun 2017 11:26:01 +0200 Subject: [PATCH] cleanup: use DM limit define For calculation use already defined size in libdm, which give better estimation of maximal size of thin pool metadata. --- lib/config/defaults.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/config/defaults.h b/lib/config/defaults.h index 05747fa93..51542df9c 100644 --- a/lib/config/defaults.h +++ b/lib/config/defaults.h @@ -104,7 +104,7 @@ #define DEFAULT_THIN_REPAIR_OPTION1 "" #define DEFAULT_THIN_REPAIR_OPTIONS_CONFIG "#S" DEFAULT_THIN_REPAIR_OPTION1 #define DEFAULT_THIN_POOL_METADATA_REQUIRE_SEPARATE_PVS 0 -#define DEFAULT_THIN_POOL_MAX_METADATA_SIZE (16 * 1024 * 1024) /* KB */ +#define DEFAULT_THIN_POOL_MAX_METADATA_SIZE (DM_THIN_MAX_METADATA_SIZE / 2) /* KB */ #define DEFAULT_THIN_POOL_MIN_METADATA_SIZE 2048 /* KB */ #define DEFAULT_THIN_POOL_OPTIMAL_METADATA_SIZE (128 * 1024 * 1024) /* KB */ #define DEFAULT_THIN_POOL_CHUNK_SIZE_POLICY "generic"