summaryrefslogtreecommitdiff
path: root/lib/config/defaults.h
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2016-08-24 10:16:01 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2016-08-29 20:47:31 +0200
commitb493811968b34876ef558ad04d18c1b76bd28113 (patch)
tree3893ea5bae1a9de56a3a0fad76463567abeb7811 /lib/config/defaults.h
parent2fde4399a01a002437d6d882c7faa59221aca93e (diff)
downloadlvm2-b493811968b34876ef558ad04d18c1b76bd28113.tar.gz
cache: introduce cache_pool_max_chunks
Introduce 'hard limit' for max number of cache chunks. When cache target operates with too many chunks (>10e6). When user is aware of related possible troubles he may increase the limit in lvm.conf. Also verbosely inform user about possible solution. Code works for both lvcreate and lvconvert. Lvconvert fully supports change of chunk_size when caching LV (and validates for compatible settings).
Diffstat (limited to 'lib/config/defaults.h')
-rw-r--r--lib/config/defaults.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/config/defaults.h b/lib/config/defaults.h
index c6efcdc71..d98877955 100644
--- a/lib/config/defaults.h
+++ b/lib/config/defaults.h
@@ -127,6 +127,7 @@
#define DEFAULT_CACHE_REPAIR_OPTIONS_CONFIG "#S" DEFAULT_CACHE_REPAIR_OPTION1
#define DEFAULT_CACHE_POOL_METADATA_REQUIRE_SEPARATE_PVS 0
#define DEFAULT_CACHE_POOL_CHUNK_SIZE 64 /* KB */
+#define DEFAULT_CACHE_POOL_MAX_CHUNKS 1000000
#define DEFAULT_CACHE_POOL_MIN_METADATA_SIZE 2048 /* KB */
#define DEFAULT_CACHE_POOL_MAX_METADATA_SIZE (16 * 1024 * 1024) /* KB */
#define DEFAULT_CACHE_POLICY "mq"