From: David Teigland Date: Fri, 16 Aug 2019 18:35:09 +0000 (-0500) Subject: bcache: increase max allowed bcache size X-Git-Tag: v2_03_06~167 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=61fce72a114d23b98bfd4a9d457e3d55297455ef;p=lvm2.git bcache: increase max allowed bcache size from 128MB to 512MB (the default remains 8MB) --- diff --git a/lib/label/label.c b/lib/label/label.c index 3c8e10c5b..e786c89c6 100644 --- a/lib/label/label.c +++ b/lib/label/label.c @@ -808,8 +808,8 @@ out: * the metadata size.) */ -#define MIN_BCACHE_BLOCKS 32 /* 4MB */ -#define MAX_BCACHE_BLOCKS 1024 +#define MIN_BCACHE_BLOCKS 32 /* 4MB (32 * 128KB) */ +#define MAX_BCACHE_BLOCKS 4096 /* 512MB (4096 * 128KB) */ static int _setup_bcache(void) {