Versions in this module Expand all Collapse all v0 v0.11.0 May 7, 2014 Changes in this version + const BlkDiscard — linux/amd64 + const BlkGetSize64 — linux/amd64 + const LoFlagsAutoClear — linux/amd64 + const LoFlagsPartScan — linux/amd64 + const LoFlagsReadOnly — linux/amd64 + const LoKeySize — linux/amd64 + const LoNameSize — linux/amd64 + const LoopClrFd — linux/amd64 + const LoopCtlGetFree — linux/amd64 + const LoopGetStatus64 — linux/amd64 + const LoopSetCapacity — linux/amd64 + const LoopSetFd — linux/amd64 + const LoopSetStatus64 — linux/amd64 + var DefaultBaseFsSize uint64 = 10 * 1024 * 1024 * 1024 — linux/amd64 + var DefaultDataLoopbackSize int64 = 100 * 1024 * 1024 * 1024 — linux/amd64 + var DefaultMetaDataLoopbackSize int64 = 2 * 1024 * 1024 * 1024 — linux/amd64 + var DmGetLibraryVersion = dmGetLibraryVersionFct — linux/amd64 + var DmGetNextTarget = dmGetNextTargetFct — linux/amd64 + var DmLogInitVerbose = dmLogInitVerboseFct — linux/amd64 + var DmSetDevDir = dmSetDevDirFct — linux/amd64 + var DmTaskAddTarget = dmTaskAddTargetFct — linux/amd64 + var DmTaskCreate = dmTaskCreateFct — linux/amd64 + var DmTaskDestroy = dmTaskDestroyFct — linux/amd64 + var DmTaskGetInfo = dmTaskGetInfoFct — linux/amd64 + var DmTaskRun = dmTaskRunFct — linux/amd64 + var DmTaskSetAddNode = dmTaskSetAddNodeFct — linux/amd64 + var DmTaskSetCookie = dmTaskSetCookieFct — linux/amd64 + var DmTaskSetMessage = dmTaskSetMessageFct — linux/amd64 + var DmTaskSetName = dmTaskSetNameFct — linux/amd64 + var DmTaskSetRo = dmTaskSetRoFct — linux/amd64 + var DmTaskSetSector = dmTaskSetSectorFct — linux/amd64 + var DmUdevWait = dmUdevWaitFct — linux/amd64 + var ErrAttachLoopbackDevice = errors.New("loopback mounting failed") — linux/amd64 + var ErrCreateRemoveTask = errors.New("Can't create task of type DeviceRemove") — linux/amd64 + var ErrGetBlockSize = errors.New("Can't get block size") — linux/amd64 + var ErrGetLibraryVersion = errors.New("dm_get_library_version failed") — linux/amd64 + var ErrGetLoopbackBackingFile = errors.New("Unable to get loopback backing file") — linux/amd64 + var ErrInvalidAddNode = errors.New("Invalide AddNoce type") — linux/amd64 + var ErrLoopbackSetCapacity = errors.New("Unable set loopback capacity") — linux/amd64 + var ErrNilCookie = errors.New("cookie ptr can't be nil") — linux/amd64 + var ErrRunRemoveDevice = errors.New("running removeDevice failed") — linux/amd64 + var ErrSetDevDir = errors.New("dm_set_dev_dir failed") — linux/amd64 + var ErrTaskAddTarget = errors.New("dm_task_add_target failed") — linux/amd64 + var ErrTaskGetInfo = errors.New("dm_task_get_info failed") — linux/amd64 + var ErrTaskRun = errors.New("dm_task_run failed") — linux/amd64 + var ErrTaskSetAddNode = errors.New("dm_task_set_add_node failed") — linux/amd64 + var ErrTaskSetCookie = errors.New("dm_task_set_cookie failed") — linux/amd64 + var ErrTaskSetMessage = errors.New("dm_task_set_message failed") — linux/amd64 + var ErrTaskSetName = errors.New("dm_task_set_name failed") — linux/amd64 + var ErrTaskSetRo = errors.New("dm_task_set_ro failed") — linux/amd64 + var ErrTaskSetSector = errors.New("dm_task_set_sector failed") — linux/amd64 + var ErrUdevWait = errors.New("wait on udev cookie failed") — linux/amd64 + var Init = func(home string) (graphdriver.Driver, error) — linux/amd64 + var LogWithErrnoInit = logWithErrnoInitFct — linux/amd64 + var Mounted = func(mountpoint string) (bool, error) — linux/amd64 + func BlockDeviceDiscard(path string) error — linux/amd64 + func DevmapperLogCallback(level C.int, file *C.char, line C.int, dm_errno_or_class C.int, ...) — linux/amd64 + func FindLoopDeviceFor(file *osFile) *osFile — linux/amd64 + func GetBlockDeviceSize(file *osFile) (uint64, error) — linux/amd64 + func GetLibraryVersion() (string, error) — linux/amd64 + func LogInitVerbose(level int) — linux/amd64 + func LoopbackSetCapacity(file *osFile) error — linux/amd64 + func RemoveDevice(name string) error — linux/amd64 + func SetDevDir(dir string) error — linux/amd64 + func UdevWait(cookie uint) error — linux/amd64 + type AddNodeType int — linux/amd64 + const AddNodeOnCreate + const AddNodeOnResume + type CDmTask C.struct_dm_task — linux/amd64 + type CLoopInfo64 C.struct_loop_info64 — 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 DeviceSet struct — linux/amd64 + NewTransactionId uint64 + TransactionId uint64 + func NewDeviceSet(root string, doInit bool) (*DeviceSet, error) + func (devices *DeviceSet) AddDevice(hash, baseHash string) error + func (devices *DeviceSet) DeleteDevice(hash string) 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) HasInitializedDevice(hash string) bool + func (devices *DeviceSet) List() []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 DevmapperLogger interface — linux/amd64 + type DiskUsage struct — linux/amd64 + 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) Put(id string) + func (d *Driver) Remove(id string) error + func (d *Driver) Status() [][2]string + func (d *Driver) String() string + type Info struct — linux/amd64 + EventNr uint32 + Exists int + InactiveTable int + LiveTable int + Major uint32 + Minor uint32 + OpenCount int32 + ReadOnly int + Suspended int + TargetCount int32 + type LoopInfo64 struct — linux/amd64 + type MetaData struct — linux/amd64 + Devices map[string]*DevInfo + type Status struct — linux/amd64 + Data DiskUsage + DataLoopback string + Metadata DiskUsage + MetadataLoopback string + PoolName string + SectorSize uint64 + type Task struct — linux/amd64 + func TaskCreate(tasktype TaskType) *Task + func (t *Task) AddTarget(start, size uint64, ttype, params string) error + func (t *Task) GetInfo() (*Info, error) + func (t *Task) GetNextTarget(next uintptr) (nextPtr uintptr, start uint64, length uint64, targetType string, params string) + func (t *Task) Run() error + func (t *Task) SetAddNode(addNode AddNodeType) error + func (t *Task) SetCookie(cookie *uint, flags uint16) error + func (t *Task) SetMessage(message string) error + func (t *Task) SetName(name string) error + func (t *Task) SetRo() error + func (t *Task) SetSector(sector uint64) error + type TaskType int — linux/amd64 + const DeviceClear + const DeviceCreate + const DeviceDeps + const DeviceInfo + const DeviceList + const DeviceListVersions + const DeviceMknodes + const DeviceReload + const DeviceRemove + const DeviceRemoveAll + const DeviceRename + const DeviceResume + const DeviceSetGeometry + const DeviceStatus + const DeviceSuspend + const DeviceTable + const DeviceTargetMsg + const DeviceVersion + const DeviceWaitevent