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 DeviceMetadata
- 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) 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
- 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) 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
- 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 = 100 * 1024 * 1024 * 1024 DefaultThinpBlockSize uint32 = 128 // 64K = 128 512b sectors DefaultUdevSyncOverride bool = false 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 WarnOnLoopback bool = true LoopbackInUse bool )
Functions ¶
func ProbeFsType ¶
Types ¶
type DevInfo ¶
type DeviceMetadata ¶
type DeviceMetadata struct {
// contains filtered or unexported fields
}
Structure used to export image/container metadata in docker inspect.
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:"-"` BaseDeviceUUID string //save UUID of base device // contains filtered or unexported fields }
func NewDeviceSet ¶
func (*DeviceSet) DataDevicePath ¶
DataDevicePath returns the path to the data storage for this deviceset, regardless of loopback or block device
func (*DeviceSet) DeleteDevice ¶
func (*DeviceSet) ExportDeviceMetadata ¶
func (devices *DeviceSet) ExportDeviceMetadata(hash string) (*DeviceMetadata, error)
Status returns the current status of this deviceset
func (*DeviceSet) GetDeviceStatus ¶
func (*DeviceSet) HasActivatedDevice ¶
func (*DeviceSet) MetadataDevicePath ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.