Changeset View
Changeset View
Standalone View
Standalone View
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/spa.h
Show First 20 Lines • Show All 148 Lines • ▼ Show 20 Lines | |||||
* overhead, three DVAs per bp, plus one more bit in case we do anything | * overhead, three DVAs per bp, plus one more bit in case we do anything | ||||
* else that expands the ASIZE. | * else that expands the ASIZE. | ||||
*/ | */ | ||||
#define SPA_LSIZEBITS 16 /* LSIZE up to 32M (2^16 * 512) */ | #define SPA_LSIZEBITS 16 /* LSIZE up to 32M (2^16 * 512) */ | ||||
#define SPA_PSIZEBITS 16 /* PSIZE up to 32M (2^16 * 512) */ | #define SPA_PSIZEBITS 16 /* PSIZE up to 32M (2^16 * 512) */ | ||||
#define SPA_ASIZEBITS 24 /* ASIZE up to 64 times larger */ | #define SPA_ASIZEBITS 24 /* ASIZE up to 64 times larger */ | ||||
#define SPA_COMPRESSBITS 7 | #define SPA_COMPRESSBITS 7 | ||||
#define SPA_COMPRESSMASK ((1U<<SPA_COMPRESSBITS)-1) | |||||
/* | /* | ||||
* All SPA data is represented by 128-bit data virtual addresses (DVAs). | * All SPA data is represented by 128-bit data virtual addresses (DVAs). | ||||
* The members of the dva_t should be considered opaque outside the SPA. | * The members of the dva_t should be considered opaque outside the SPA. | ||||
*/ | */ | ||||
typedef struct dva { | typedef struct dva { | ||||
uint64_t dva_word[2]; | uint64_t dva_word[2]; | ||||
} dva_t; | } dva_t; | ||||
▲ Show 20 Lines • Show All 797 Lines • Show Last 20 Lines |