FreeBSD ZFS
The Zettabyte File System
Data Fields

zilog Struct Reference

Stable storage intent log management structure. More...

#include <zil_impl.h>

Collaboration diagram for zilog:
Collaboration graph
[legend]

Data Fields

kmutex_t zl_lock
 protects most zilog_t fields
struct dsl_poolzl_dmu_pool
 DSL pool.
spa_tzl_spa
 handle for read/write log
const zil_header_tzl_header
 log header buffer
objset_tzl_os
 object set we're logging
zil_get_data_tzl_get_data
 callback to get object content
zio_tzl_root_zio
 log writer root zio
uint64_t zl_lr_seq
 on-disk log record sequence number
uint64_t zl_commit_lr_seq
 last committed on-disk lr seq
uint64_t zl_destroy_txg
 txg of last zil_destroy()
uint64_t zl_replayed_seq [TXG_SIZE]
 last replayed rec seq
uint64_t zl_replaying_seq
 current replay seq number
uint32_t zl_suspend
 log suspend count
kcondvar_t zl_cv_writer
 log writer thread completion
kcondvar_t zl_cv_suspend
 log suspend completion
uint8_t zl_suspending
 log is currently suspending
uint8_t zl_keep_first
 keep first log block in destroy
uint8_t zl_replay
 replaying records while set
uint8_t zl_stop_sync
 for debugging
uint8_t zl_writer
 boolean: write setup in progress
uint8_t zl_logbias
 latency or throughput
uint8_t zl_sync
 synchronous or asynchronous
int zl_parse_error
 last zil_parse() error
uint64_t zl_parse_blk_seq
 highest blk seq on last parse
uint64_t zl_parse_lr_seq
 highest lr seq on last parse
uint64_t zl_parse_blk_count
 number of blocks parsed
uint64_t zl_parse_lr_count
 number of log records parsed
uint64_t zl_next_batch
 next batch number
uint64_t zl_com_batch
 committed batch number
kcondvar_t zl_cv_batch [2]
 batch condition variables
itxg_t zl_itxg [TXG_SIZE]
 intent log txg chains
list_t zl_itx_commit_list
 itx list to be committed
uint64_t zl_itx_list_sz
 total size of records on list
uint64_t zl_cur_used
 current commit log size used
list_t zl_lwb_list
 in-flight log write list
kmutex_t zl_vdev_lock
 protects zl_vdev_tree
avl_tree_t zl_vdev_tree
 vdevs to flush in zil_commit()
taskq_t * zl_clean_taskq
 runs lwb and itx clean tasks
avl_tree_t zl_bp_tree
 track bps during log parse
clock_t zl_replay_time
 lbolt of when replay started
uint64_t zl_replay_blks
 number of log blocks replayed
zil_header_t zl_old_header
 debugging aid
uint_t zl_prev_blks [ZIL_PREV_BLKS]
 size - sector rounded
uint_t zl_prev_rotor
 rotor for zl_prev[]
txg_node_t zl_dirty_link
 protected by dp_dirty_zilogs list

Detailed Description

Stable storage intent log management structure.

One per dataset.

Definition at line 89 of file zil_impl.h.


Field Documentation

avl_tree_t zilog::zl_bp_tree

track bps during log parse

Definition at line 128 of file zil_impl.h.

runs lwb and itx clean tasks

Definition at line 127 of file zil_impl.h.

committed batch number

Definition at line 118 of file zil_impl.h.

last committed on-disk lr seq

Definition at line 98 of file zil_impl.h.

current commit log size used

Definition at line 123 of file zil_impl.h.

kcondvar_t zilog::zl_cv_batch[2]

batch condition variables

Definition at line 119 of file zil_impl.h.

log suspend completion

Definition at line 104 of file zil_impl.h.

kcondvar_t zilog::zl_cv_writer

log writer thread completion

Definition at line 103 of file zil_impl.h.

txg of last zil_destroy()

Definition at line 99 of file zil_impl.h.

protected by dp_dirty_zilogs list

Definition at line 134 of file zil_impl.h.

DSL pool.

Definition at line 91 of file zil_impl.h.

callback to get object content

Definition at line 95 of file zil_impl.h.

log header buffer

Definition at line 93 of file zil_impl.h.

itx list to be committed

Definition at line 121 of file zil_impl.h.

total size of records on list

Definition at line 122 of file zil_impl.h.

intent log txg chains

Definition at line 120 of file zil_impl.h.

keep first log block in destroy

Definition at line 106 of file zil_impl.h.

kmutex_t zilog::zl_lock

protects most zilog_t fields

Definition at line 90 of file zil_impl.h.

latency or throughput

Definition at line 110 of file zil_impl.h.

uint64_t zilog::zl_lr_seq

on-disk log record sequence number

Definition at line 97 of file zil_impl.h.

in-flight log write list

Definition at line 124 of file zil_impl.h.

next batch number

Definition at line 117 of file zil_impl.h.

debugging aid

Definition at line 131 of file zil_impl.h.

object set we're logging

Definition at line 94 of file zil_impl.h.

number of blocks parsed

Definition at line 115 of file zil_impl.h.

highest blk seq on last parse

Definition at line 113 of file zil_impl.h.

last zil_parse() error

Definition at line 112 of file zil_impl.h.

number of log records parsed

Definition at line 116 of file zil_impl.h.

highest lr seq on last parse

Definition at line 114 of file zil_impl.h.

uint_t zilog::zl_prev_blks[ZIL_PREV_BLKS]

size - sector rounded

Definition at line 132 of file zil_impl.h.

rotor for zl_prev[]

Definition at line 133 of file zil_impl.h.

replaying records while set

Definition at line 107 of file zil_impl.h.

number of log blocks replayed

Definition at line 130 of file zil_impl.h.

lbolt of when replay started

Definition at line 129 of file zil_impl.h.

uint64_t zilog::zl_replayed_seq[TXG_SIZE]

last replayed rec seq

Definition at line 100 of file zil_impl.h.

current replay seq number

Definition at line 101 of file zil_impl.h.

log writer root zio

Definition at line 96 of file zil_impl.h.

handle for read/write log

Definition at line 92 of file zil_impl.h.

for debugging

Definition at line 108 of file zil_impl.h.

log suspend count

Definition at line 102 of file zil_impl.h.

log is currently suspending

Definition at line 105 of file zil_impl.h.

uint8_t zilog::zl_sync

synchronous or asynchronous

Definition at line 111 of file zil_impl.h.

protects zl_vdev_tree

Definition at line 125 of file zil_impl.h.

avl_tree_t zilog::zl_vdev_tree

vdevs to flush in zil_commit()

Definition at line 126 of file zil_impl.h.

boolean: write setup in progress

Definition at line 109 of file zil_impl.h.


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