equal
deleted
inserted
replaced
17 * information: Portions Copyright [yyyy] [name of copyright owner] |
17 * information: Portions Copyright [yyyy] [name of copyright owner] |
18 * |
18 * |
19 * CDDL HEADER END |
19 * CDDL HEADER END |
20 */ |
20 */ |
21 /* |
21 /* |
22 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. |
22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. |
23 * Use is subject to license terms. |
|
24 */ |
23 */ |
25 |
24 |
26 #ifndef _SYS_ZAP_IMPL_H |
25 #ifndef _SYS_ZAP_IMPL_H |
27 #define _SYS_ZAP_IMPL_H |
26 #define _SYS_ZAP_IMPL_H |
28 |
27 |
65 |
64 |
66 typedef struct mzap_ent { |
65 typedef struct mzap_ent { |
67 avl_node_t mze_node; |
66 avl_node_t mze_node; |
68 int mze_chunkid; |
67 int mze_chunkid; |
69 uint64_t mze_hash; |
68 uint64_t mze_hash; |
70 mzap_ent_phys_t mze_phys; |
69 uint32_t mze_cd; /* copy from mze_phys->mze_cd */ |
71 } mzap_ent_t; |
70 } mzap_ent_t; |
|
71 |
|
72 #define MZE_PHYS(zap, mze) \ |
|
73 (&(zap)->zap_m.zap_phys->mz_chunk[(mze)->mze_chunkid]) |
72 |
74 |
73 /* |
75 /* |
74 * The (fat) zap is stored in one object. It is an array of |
76 * The (fat) zap is stored in one object. It is an array of |
75 * 1<<FZAP_BLOCK_SHIFT byte blocks. The layout looks like one of: |
77 * 1<<FZAP_BLOCK_SHIFT byte blocks. The layout looks like one of: |
76 * |
78 * |