equal
deleted
inserted
replaced
14 * |
14 * |
15 * You should have received a copy of the GNU General Public License |
15 * You should have received a copy of the GNU General Public License |
16 * along with this program; if not, write to the Free Software |
16 * along with this program; if not, write to the Free Software |
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
18 */ |
18 */ |
|
19 |
19 /* |
20 /* |
20 * Copyright 2010 Sun Microsystems, Inc. All rights reserved. |
21 * Copyright 2010 Sun Microsystems, Inc. All rights reserved. |
21 * Use is subject to license terms. |
22 * Use is subject to license terms. |
|
23 */ |
|
24 |
|
25 /* |
|
26 * Copyright (c) 2012 by Delphix. All rights reserved. |
22 */ |
27 */ |
23 |
28 |
24 #ifndef _SYS_SPA_H |
29 #ifndef _SYS_SPA_H |
25 #define _SYS_SPA_H |
30 #define _SYS_SPA_H |
26 |
31 |
63 #define SPA_BLOCKSIZES (SPA_MAXBLOCKSHIFT - SPA_MINBLOCKSHIFT + 1) |
68 #define SPA_BLOCKSIZES (SPA_MAXBLOCKSHIFT - SPA_MINBLOCKSHIFT + 1) |
64 |
69 |
65 /* |
70 /* |
66 * Size of block to hold the configuration data (a packed nvlist) |
71 * Size of block to hold the configuration data (a packed nvlist) |
67 */ |
72 */ |
68 #define SPA_CONFIG_BLOCKSIZE (1 << 14) |
73 #define SPA_CONFIG_BLOCKSIZE (1ULL << 14) |
69 |
74 |
70 /* |
75 /* |
71 * The DVA size encodings for LSIZE and PSIZE support blocks up to 32MB. |
76 * The DVA size encodings for LSIZE and PSIZE support blocks up to 32MB. |
72 * The ASIZE encoding should be at least 64 times larger (6 more bits) |
77 * The ASIZE encoding should be at least 64 times larger (6 more bits) |
73 * to support up to 4-way RAID-Z mirror mode with worst-case gang block |
78 * to support up to 4-way RAID-Z mirror mode with worst-case gang block |