Versions in this module Expand all Collapse all v0 v0.7.0 Nov 25, 2015 Changes in this version + var DMLogLevel int = devicemapper.LogLevelFatal — linux/amd64 + var DefaultBaseFsSize uint64 = 100 * 1024 * 1024 * 1024 — linux/amd64 + var DefaultDataLoopbackSize int64 = 100 * 1024 * 1024 * 1024 — linux/amd64 + var DefaultMetaDataLoopbackSize int64 = 2 * 1024 * 1024 * 1024 — linux/amd64 + var DefaultThinpBlockSize uint32 = 128 — linux/amd64 + var DefaultUdevSyncOverride bool = false — linux/amd64 + var DeviceIdMapSz int = (MaxDeviceId + 1) / 8 — linux/amd64 + var DriverDeferredRemovalSupport bool = false — linux/amd64 + var EnableDeferredRemoval bool = false — linux/amd64 + var MaxDeviceId int = 0xffffff — linux/amd64 + func Init(home string, options []string) (graphdriver.Driver, error) — linux/amd64 + func Mounted(mountpoint string) (bool, error) — linux/amd64 + func ProbeFsType(device string) (string, error) — linux/amd64 + type DevInfo struct — linux/amd64 + DeviceId int + Hash string + Initialized bool + Size uint64 + TransactionId uint64 + func (info *DevInfo) DevName() string + func (info *DevInfo) Name() string + type DevStatus struct — linux/amd64 + DeviceId int + HighestMappedSector uint64 + MappedSectors uint64 + Size uint64 + SizeInSectors uint64 + TransactionId uint64 + type DeviceMetadata struct — linux/amd64 + type DeviceSet struct — linux/amd64 + BaseDeviceUUID string + NextDeviceId int + TransactionId uint64 + func NewDeviceSet(root string, doInit bool, options []string) (*DeviceSet, error) + func (devices *DeviceSet) AddDevice(hash, baseHash string) error + func (devices *DeviceSet) DMLog(level int, file string, line int, dmError int, message string) + func (devices *DeviceSet) DataDevicePath() string + func (devices *DeviceSet) DeleteDevice(hash string) error + func (devices *DeviceSet) ExportDeviceMetadata(hash string) (*DeviceMetadata, error) + func (devices *DeviceSet) GetDeviceStatus(hash string) (*DevStatus, error) + func (devices *DeviceSet) HasActivatedDevice(hash string) bool + func (devices *DeviceSet) HasDevice(hash string) bool + func (devices *DeviceSet) List() []string + func (devices *DeviceSet) MetadataDevicePath() string + func (devices *DeviceSet) MountDevice(hash, path, mountLabel string) error + func (devices *DeviceSet) ResizePool(size int64) error + func (devices *DeviceSet) Shutdown() error + func (devices *DeviceSet) Status() *Status + func (devices *DeviceSet) UnmountDevice(hash string) error + type DiskUsage struct — linux/amd64 + Available uint64 + Total uint64 + Used uint64 + type Driver struct — linux/amd64 + func (d *Driver) Cleanup() error + func (d *Driver) Create(id, parent string) error + func (d *Driver) Exists(id string) bool + func (d *Driver) Get(id, mountLabel string) (string, error) + func (d *Driver) GetMetadata(id string) (map[string]string, error) + func (d *Driver) Put(id string) error + func (d *Driver) Remove(id string) error + func (d *Driver) Status() [][2]string + func (d *Driver) String() string + type MetaData struct — linux/amd64 + Devices map[string]*DevInfo + type Status struct — linux/amd64 + Data DiskUsage + DataFile string + DataLoopback string + DeferredRemoveEnabled bool + Metadata DiskUsage + MetadataFile string + MetadataLoopback string + PoolName string + SectorSize uint64 + UdevSyncSupported bool + type Transaction struct — linux/amd64 + DeviceId int + DeviceIdHash string + OpenTransactionId uint64