Documentation ¶
Overview ¶
Package zfs probes ZFS filesystems.
Index ¶
- Constants
- type Probe
- type ZFSUB
- func (s ZFSUB) Get_ub_guid_sum() uint64
- func (s ZFSUB) Get_ub_magic() uint64
- func (s ZFSUB) Get_ub_rootbp() byte
- func (s ZFSUB) Get_ub_timestamp() uint64
- func (s ZFSUB) Get_ub_txg() uint64
- func (s ZFSUB) Get_ub_version() uint64
- func (s ZFSUB) Put_ub_guid_sum(v uint64)
- func (s ZFSUB) Put_ub_magic(v uint64)
- func (s ZFSUB) Put_ub_rootbp(v byte)
- func (s ZFSUB) Put_ub_timestamp(v uint64)
- func (s ZFSUB) Put_ub_txg(v uint64)
- func (s ZFSUB) Put_ub_version(v uint64)
Constants ¶
View Source
const ZFSUB_SIZE = 41
ZFSUB_SIZE is the size of the ZFSUB struct.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Probe ¶
type Probe struct{}
Probe for the filesystem.
type ZFSUB ¶
type ZFSUB []byte
ZFSUB is a byte slice representing the zfs.h C header.
func (ZFSUB) Get_ub_guid_sum ¶
Get_ub_guid_sum returns sum of all vdev guids.
func (ZFSUB) Get_ub_magic ¶
Get_ub_magic returns UBERBLOCK_MAGIC.
func (ZFSUB) Get_ub_rootbp ¶
Get_ub_rootbp returns MOS objset_phys_t.
func (ZFSUB) Get_ub_timestamp ¶
Get_ub_timestamp returns UTC time of last sync.
func (ZFSUB) Get_ub_version ¶
Get_ub_version returns SPA_VERSION.
func (ZFSUB) Put_ub_guid_sum ¶
Put_ub_guid_sum sets sum of all vdev guids.
func (ZFSUB) Put_ub_magic ¶
Put_ub_magic sets UBERBLOCK_MAGIC.
func (ZFSUB) Put_ub_rootbp ¶
Put_ub_rootbp sets MOS objset_phys_t.
func (ZFSUB) Put_ub_timestamp ¶
Put_ub_timestamp sets UTC time of last sync.
func (ZFSUB) Put_ub_version ¶
Put_ub_version sets SPA_VERSION.
Click to show internal directories.
Click to hide internal directories.