diff options
| author | Martin Matuska <mm@FreeBSD.org> | 2021-04-14 06:03:07 +0000 |
|---|---|---|
| committer | Martin Matuska <mm@FreeBSD.org> | 2021-04-14 06:03:07 +0000 |
| commit | d76d37d9c3f33de9155c16f3b1eceb288c0702a0 (patch) | |
| tree | 5162b40e96b21f938b4b7df159ac96dc782f2958 /include/sys/spa.h | |
| parent | 48a1c304e82e33d5a3dd722a6ef4519dd998614b (diff) | |
Update vendor/openzfs to openzfs/zfs/master@3522f57b6vendor/openzfs/legacy
Notable upstream pull request merges:
#11742 When specifying raidz vdev name, parity count should match
#11744 Use a helper function to clarify gang block size
#11771 Support running FreeBSD buildworld on Arm-based macOS hosts
Diffstat (limited to 'include/sys/spa.h')
| -rw-r--r-- | include/sys/spa.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sys/spa.h b/include/sys/spa.h index 8391be8328b6..c960478efe50 100644 --- a/include/sys/spa.h +++ b/include/sys/spa.h @@ -405,6 +405,12 @@ typedef struct blkptr { /* * Macros to get and set fields in a bp or DVA. */ + +/* + * Note, for gang blocks, DVA_GET_ASIZE() is the total space allocated for + * this gang DVA including its children BP's. The space allocated at this + * DVA's vdev/offset is vdev_gang_header_asize(vdev). + */ #define DVA_GET_ASIZE(dva) \ BF64_GET_SB((dva)->dva_word[0], 0, SPA_ASIZEBITS, SPA_MINBLOCKSHIFT, 0) #define DVA_SET_ASIZE(dva, x) \ |
