]> sourceware.org Git - lvm2.git/commit
cache: introduce cache_pool_max_chunks
authorZdenek Kabelac <zkabelac@redhat.com>
Wed, 24 Aug 2016 08:16:01 +0000 (10:16 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 29 Aug 2016 18:47:31 +0000 (20:47 +0200)
commitb493811968b34876ef558ad04d18c1b76bd28113
tree3893ea5bae1a9de56a3a0fad76463567abeb7811
parent2fde4399a01a002437d6d882c7faa59221aca93e
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).
WHATS_NEW
lib/config/config.c
lib/config/config.h
lib/config/config_settings.h
lib/config/defaults.h
lib/metadata/cache_manip.c
test/shell/lvconvert-cache-chunks.sh [new file with mode: 0644]
tools/lvconvert.c
This page took 0.039734 seconds and 5 git commands to generate.