FreeBSD ZFS
The Zettabyte File System
Data Fields

sa_hdr_phys Struct Reference

header for all bonus and spill buffers. More...

#include <sa_impl.h>

Data Fields

uint32_t sa_magic
uint16_t sa_layout_info
 Encoded with hdrsize and layout number sa_hdr_phys -> sa_layout_info.
uint16_t sa_lengths [1]
 optional sizes for variable length attrs

Detailed Description

header for all bonus and spill buffers.

The header has a fixed portion with a variable number of "lengths" depending on the number of variable sized attribues which are determined by the "layout number"

Definition at line 161 of file sa_impl.h.


Field Documentation

Encoded with hdrsize and layout number sa_hdr_phys -> sa_layout_info.

	   16      10       0
	   +--------+-------+
	   | hdrsz  |layout |
	   +--------+-------+
	 

Bits 0-10 are the layout number Bits 11-16 are the size of the header. The hdrsize is the number * 8

For example.

  • hdrsz of 1 ==> 8 byte header
  • hdrsz of 2 ==> 16 byte header

Definition at line 182 of file sa_impl.h.

optional sizes for variable length attrs

Definition at line 183 of file sa_impl.h.

Definition at line 162 of file sa_impl.h.


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines