FreeBSD ZFS
The Zettabyte File System
Data Fields

uberblock Struct Reference

The uberblock version is incremented whenever an incompatible on-disk format change is made to the SPA, DMU, or ZAP. More...

#include <uberblock_impl.h>

Collaboration diagram for uberblock:
Collaboration graph
[legend]

Data Fields

uint64_t ub_magic
 UBERBLOCK_MAGIC.
uint64_t ub_version
 SPA_VERSION.
uint64_t ub_txg
 txg of last sync
uint64_t ub_guid_sum
 sum of all vdev guids
uint64_t ub_timestamp
 UTC time of last sync.
blkptr_t ub_rootbp
 MOS objset_phys_t.
uint64_t ub_software_version
 highest SPA_VERSION supported by software that wrote this txg

Detailed Description

The uberblock version is incremented whenever an incompatible on-disk format change is made to the SPA, DMU, or ZAP.

Note:
The first two fields should never be moved. When a storage pool is opened, the uberblock must be read off the disk before the version can be checked. If the ub_version field is moved, we may not detect version mismatch. If the ub_magic field is moved, applications that expect the magic number in the first word won't work.

Definition at line 48 of file uberblock_impl.h.


Field Documentation

sum of all vdev guids

Definition at line 52 of file uberblock_impl.h.

UBERBLOCK_MAGIC.

Definition at line 49 of file uberblock_impl.h.

MOS objset_phys_t.

Definition at line 54 of file uberblock_impl.h.

highest SPA_VERSION supported by software that wrote this txg

Definition at line 57 of file uberblock_impl.h.

UTC time of last sync.

Definition at line 53 of file uberblock_impl.h.

txg of last sync

Definition at line 51 of file uberblock_impl.h.

SPA_VERSION.

Definition at line 50 of file uberblock_impl.h.


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