FreeBSD ZFS
The Zettabyte File System
Data Fields

zbookmark Struct Reference

A bookmark is a four-tuple <objset, object, level, blkid> that uniquely identifies any block in the pool. More...

#include <zio.h>

Data Fields

uint64_t zb_objset
uint64_t zb_object
int64_t zb_level
uint64_t zb_blkid

Detailed Description

A bookmark is a four-tuple <objset, object, level, blkid> that uniquely identifies any block in the pool.

By convention, the meta-objset (MOS) is objset 0, and the meta-dnode is object 0. This covers all blocks except root blocks and ZIL blocks, which are defined as follows:

Root blocks (objset_phys_t) are object 0, level -1: <objset, 0, -1, 0>. ZIL blocks are bookmarked <objset, 0, -2, blkid == ZIL sequence number>. dmu_sync()ed ZIL data blocks are bookmarked <objset, object, -2, blkid>.

Note:
This structure is called a bookmark because its original purpose was to remember where to resume a pool-wide traverse.
This structure is passed between userland and the kernel. Therefore it must not change size or alignment between 32/64 bit compilation options.

Definition at line 252 of file zio.h.


Field Documentation

Definition at line 256 of file zio.h.

Definition at line 255 of file zio.h.

Definition at line 254 of file zio.h.

Definition at line 253 of file zio.h.


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