aboutsummaryrefslogtreecommitdiff
path: root/sys/cddl/boot
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2014-11-10 08:20:21 +0000
committerXin LI <delphij@FreeBSD.org>2014-11-10 08:20:21 +0000
commit8bcd603968ef19c64a0bfe69519a932cd4c2ee33 (patch)
treefc0c345a3bfb9af0de85b1f0161f8541e1696530 /sys/cddl/boot
parentea455de91dd46492cce8a23e7a3b4c804312afe6 (diff)
parent0945ce02d2314be0ecc3766528cb9ef289bcd418 (diff)
Notes
Diffstat (limited to 'sys/cddl/boot')
-rw-r--r--sys/cddl/boot/zfs/zfsimpl.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/cddl/boot/zfs/zfsimpl.h b/sys/cddl/boot/zfs/zfsimpl.h
index 5f2e255e77072..730cdf49a0dd1 100644
--- a/sys/cddl/boot/zfs/zfsimpl.h
+++ b/sys/cddl/boot/zfs/zfsimpl.h
@@ -113,17 +113,14 @@
#define BSWAP_64(x) ((BSWAP_32(x) << 32) | BSWAP_32((x) >> 32))
/*
- * We currently support nine block sizes, from 512 bytes to 128K.
- * We could go higher, but the benefits are near-zero and the cost
- * of COWing a giant block to modify one byte would become excessive.
+ * Note: the boot loader can't actually read blocks larger than 128KB,
+ * due to lack of memory. Therefore its SPA_MAXBLOCKSIZE is still 128KB.
*/
#define SPA_MINBLOCKSHIFT 9
#define SPA_MAXBLOCKSHIFT 17
#define SPA_MINBLOCKSIZE (1ULL << SPA_MINBLOCKSHIFT)
#define SPA_MAXBLOCKSIZE (1ULL << SPA_MAXBLOCKSHIFT)
-#define SPA_BLOCKSIZES (SPA_MAXBLOCKSHIFT - SPA_MINBLOCKSHIFT + 1)
-
/*
* The DVA size encodings for LSIZE and PSIZE support blocks up to 32MB.
* The ASIZE encoding should be at least 64 times larger (6 more bits)