FreeBSD ZFS
The Zettabyte File System
Data Fields

zil_chain Struct Reference

Log block chaining. More...

#include <zil.h>

Collaboration diagram for zil_chain:
Collaboration graph
[legend]

Data Fields

uint64_t zc_pad
blkptr_t zc_next_blk
 next block in chain
uint64_t zc_nused
 bytes in log block used
zio_eck_t zc_eck
 block trailer

Detailed Description

Log block chaining.

Log blocks are chained together. Originally they were chained at the end of the block. For performance reasons the chain was moved to the beginning of the block which allows writes for only the data being used. The older position is supported for backwards compatability.

The zio_eck_t contains a zec_cksum which for the intent log is the sequence number of this log block. A seq of 0 is invalid. The zec_cksum is checked by the SPA against the sequence number passed in the blk_cksum field of the blkptr_t

Definition at line 90 of file zil.h.


Field Documentation

block trailer

Definition at line 94 of file zil.h.

next block in chain

Definition at line 92 of file zil.h.

bytes in log block used

Definition at line 93 of file zil.h.

Definition at line 91 of file zil.h.


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