Documentation ¶
Index ¶
- Variables
- func Init(home string, options []string) (graphdriver.Driver, error)
- func Mounted(mountpoint string) (bool, error)
- func ProbeFsType(device string) (string, error)
- type DevInfo
- type DevStatus
- type DeviceSet
- 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) 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
- type Driver
- 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) error
- func (d *Driver) Remove(id string) error
- func (d *Driver) Status() [][2]string
- func (d *Driver) String() string
- type MetaData
- type Status
- type Transaction
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultDataLoopbackSize int64 = 100 * 1024 * 1024 * 1024 DefaultMetaDataLoopbackSize int64 = 2 * 1024 * 1024 * 1024 DefaultBaseFsSize uint64 = 10 * 1024 * 1024 * 1024 DefaultThinpBlockSize uint32 = 128 // 64K = 128 512b sectors MaxDeviceId int = 0xffffff // 24 bit, pool limit DeviceIdMapSz int = (MaxDeviceId + 1) / 8 // We retry device removal so many a times that even error messages // will fill up console during normal operation. So only log Fatal // messages by default. DMLogLevel int = devicemapper.LogLevelFatal DriverDeferredRemovalSupport bool = false EnableDeferredRemoval bool = false )
Functions ¶
func ProbeFsType ¶ added in v0.12.0
Types ¶
type DevInfo ¶
type DeviceSet ¶
type DeviceSet struct { MetaData `json:"-"` sync.Mutex `json:"-"` // Protects Devices map and serializes calls into libdevmapper TransactionId uint64 `json:"-"` NextDeviceId int `json:"next_device_id"` Transaction `json:"-"` // contains filtered or unexported fields }
func NewDeviceSet ¶
func (*DeviceSet) DataDevicePath ¶ added in v1.5.0
DataDevicePath returns the path to the data storage for this deviceset, regardless of loopback or block device
func (*DeviceSet) DeleteDevice ¶
func (*DeviceSet) GetDeviceStatus ¶
func (*DeviceSet) HasActivatedDevice ¶
func (*DeviceSet) MetadataDevicePath ¶ added in v1.5.0
MetadataDevicePath returns the path to the metadata storage for this deviceset, regardless of loopback or block device
func (*DeviceSet) MountDevice ¶
func (*DeviceSet) ResizePool ¶
func (*DeviceSet) UnmountDevice ¶
type Status ¶
type Status struct { PoolName string DataFile string // actual block device for data DataLoopback string // loopback file, if used MetadataFile string // actual block device for metadata MetadataLoopback string // loopback file, if used Data DiskUsage Metadata DiskUsage SectorSize uint64 UdevSyncSupported bool DeferredRemoveEnabled bool }
type Transaction ¶ added in v1.4.0
Click to show internal directories.
Click to hide internal directories.