Skip to content

Commit 00ce064

Browse files
authored
spa: update blkptr diagram to include vdev padding on encrypted blocks
Probably just an oversight in 4d044c4. SPA_VDEVBITS is always 24, regardless of whether or not the bp is for an encrypted block, and it wouldn't make sense for it to be different anyway. Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Alexander Motin <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rob Norris <[email protected]> Closes #17564
1 parent bf38c15 commit 00ce064

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/sys/spa.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,11 @@ typedef struct zio_cksum_salt {
190190
*
191191
* 64 56 48 40 32 24 16 8 0
192192
* +-------+-------+-------+-------+-------+-------+-------+-------+
193-
* 0 | vdev1 | pad | ASIZE |
193+
* 0 | pad | vdev1 | pad | ASIZE |
194194
* +-------+-------+-------+-------+-------+-------+-------+-------+
195195
* 1 |G| offset1 |
196196
* +-------+-------+-------+-------+-------+-------+-------+-------+
197-
* 2 | vdev2 | pad | ASIZE |
197+
* 2 | pad | vdev2 | pad | ASIZE |
198198
* +-------+-------+-------+-------+-------+-------+-------+-------+
199199
* 3 |G| offset2 |
200200
* +-------+-------+-------+-------+-------+-------+-------+-------+

0 commit comments

Comments
 (0)