Documentation ¶
Overview ¶
Package lvm2 probes LVM2 PVs.
Index ¶
- Constants
- type LVM2Header
- func (s LVM2Header) Get_crc_xl() uint32
- func (s LVM2Header) Get_id() []byte
- func (s LVM2Header) Get_offset_xl() uint32
- func (s LVM2Header) Get_pv_uuid() []byte
- func (s LVM2Header) Get_sector_xl() uint64
- func (s LVM2Header) Get_type() []byte
- func (s LVM2Header) Put_crc_xl(v uint32)
- func (s LVM2Header) Put_id(v []byte)
- func (s LVM2Header) Put_offset_xl(v uint32)
- func (s LVM2Header) Put_pv_uuid(v []byte)
- func (s LVM2Header) Put_sector_xl(v uint64)
- func (s LVM2Header) Put_type(v []byte)
- type Probe
Constants ¶
View Source
const LVM2HEADER_SIZE = 64
LVM2HEADER_SIZE is the size of the LVM2Header struct.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LVM2Header ¶
type LVM2Header []byte
LVM2Header is a byte slice representing the lvm2_header.h C header.
func (LVM2Header) Get_crc_xl ¶
func (s LVM2Header) Get_crc_xl() uint32
Get_crc_xl returns From next field to end of sector.
func (LVM2Header) Get_offset_xl ¶
func (s LVM2Header) Get_offset_xl() uint32
Get_offset_xl returns Offset from start of struct to contents.
func (LVM2Header) Get_pv_uuid ¶
func (s LVM2Header) Get_pv_uuid() []byte
Get_pv_uuid returns pv_uuid.
func (LVM2Header) Get_sector_xl ¶
func (s LVM2Header) Get_sector_xl() uint64
Get_sector_xl returns Sector number of this label.
func (LVM2Header) Put_crc_xl ¶
func (s LVM2Header) Put_crc_xl(v uint32)
Put_crc_xl sets From next field to end of sector.
func (LVM2Header) Put_offset_xl ¶
func (s LVM2Header) Put_offset_xl(v uint32)
Put_offset_xl sets Offset from start of struct to contents.
func (LVM2Header) Put_sector_xl ¶
func (s LVM2Header) Put_sector_xl(v uint64)
Put_sector_xl sets Sector number of this label.
Click to show internal directories.
Click to hide internal directories.