[lvm-devel] master - cleanup: use DM limit define
Zdenek Kabelac
zkabelac at sourceware.org
Thu Jun 8 10:03:33 UTC 2017
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=ba3d3210d7fb2ad0379b90869c1e38167346091b
Commit: ba3d3210d7fb2ad0379b90869c1e38167346091b
Parent: 719d0996930dfad8608c49af2f81008b6ca77cb8
Author: Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate: Mon Jun 5 11:26:01 2017 +0200
Committer: Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Thu Jun 8 11:07:58 2017 +0200
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 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/config/defaults.h b/lib/config/defaults.h
index 05747fa..51542df 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"
More information about the lvm-devel
mailing list