]> sourceware.org Git - lvm2.git/commitdiff
bcache: increase max allowed bcache size
authorDavid Teigland <teigland@redhat.com>
Fri, 16 Aug 2019 18:35:09 +0000 (13:35 -0500)
committerDavid Teigland <teigland@redhat.com>
Fri, 16 Aug 2019 18:35:09 +0000 (13:35 -0500)
from 128MB to 512MB (the default remains 8MB)

lib/label/label.c

index 3c8e10c5ba9768d8ac37b278069979f4b224240b..e786c89c66543efcdb986fdfeb632a7c26730921 100644 (file)
@@ -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)
 {
This page took 0.034971 seconds and 5 git commands to generate.