Versions in this module Expand all Collapse all v1 v1.3.4 Apr 16, 2020 v1.0.0 May 17, 2020 Changes in this version + const DevMapperDir — linux/amd64 + const SectorSize — linux/amd64 + func ActivateDevice(poolName string, deviceName string, deviceID uint32, size uint64, ...) error — linux/amd64 + func BlockDeviceSize(devicePath string) (uint64, error) — linux/amd64 + func CreateDevice(poolName string, deviceID uint32) error — linux/amd64 + func CreatePool(poolName, dataFile, metaFile string, blockSizeSectors uint32) error — linux/amd64 + func CreateSnapshot(poolName string, deviceID uint32, baseDeviceID uint32) error — linux/amd64 + func DeleteDevice(poolName string, deviceID uint32) error — linux/amd64 + func GetFullDevicePath(deviceName string) string — linux/amd64 + func ReloadPool(deviceName, dataFile, metaFile string, blockSizeSectors uint32) error — linux/amd64 + func RemoveDevice(deviceName string, opts ...RemoveDeviceOpt) error — linux/amd64 + func ResumeDevice(deviceName string) error — linux/amd64 + func SuspendDevice(deviceName string) error — linux/amd64 + func Table(deviceName string) (string, error) — linux/amd64 + func Version() (string, error) — linux/amd64 + type DeviceInfo struct — linux/amd64 + BlockDeviceName string + EventNumber uint32 + Major uint32 + Minor uint32 + Name string + OpenCount uint32 + ReadOnly bool + Suspended bool + TableInactive bool + TableLive bool + TargetCount uint32 + func Info(deviceName string) ([]*DeviceInfo, error) + type DeviceStatus struct — linux/amd64 + Length int64 + Offset int64 + Params []string + Target string + func Status(deviceName string) (*DeviceStatus, error) + type RemoveDeviceOpt string — linux/amd64 + const RemoveDeferred + const RemoveWithForce + const RemoveWithRetries