Documentation ¶
Overview ¶
+build linux
Index ¶
- Constants
- func Init(root string, config map[string]string) (drivers.Driver, error)
- type Device
- type Driver
- func (d *Driver) CloseSnapshot(id, volumeID string) error
- func (d *Driver) CompareSnapshot(id, compareID, volumeID string) (*metadata.Mappings, error)
- func (d *Driver) CreateSnapshot(id, volumeID string) error
- func (d *Driver) CreateVolume(id, baseID string, size int64) error
- func (d *Driver) DeleteSnapshot(id, volumeID string) error
- func (d *Driver) DeleteVolume(id string) error
- func (d *Driver) GetVolumeDevice(id string) (string, error)
- func (d *Driver) HasSnapshot(id, volumeID string) bool
- func (d *Driver) Info() error
- func (d *Driver) ListVolume(id string) error
- func (d *Driver) Name() string
- func (d *Driver) OpenSnapshot(id, volumeID string) error
- func (d *Driver) ReadSnapshot(id, volumeID string, offset int64, data []byte) error
- type Snapshot
- type Volume
Constants ¶
View Source
const ( DRIVER_NAME = "devicemapper" DEFAULT_THINPOOL_NAME = "rancher-volume-pool" DEFAULT_BLOCK_SIZE = "4096" DM_DIR = "/dev/mapper/" DM_DATA_DEV = "dm.datadev" DM_METADATA_DEV = "dm.metadatadev" DM_THINPOOL_NAME = "dm.thinpoolname" DM_THINPOOL_BLOCK_SIZE = "dm.thinpoolblocksize" // as defined in device mapper thin provisioning BLOCK_SIZE_MIN = 128 BLOCK_SIZE_MAX = 2097152 BLOCK_SIZE_MULTIPLIER = 128 SECTOR_SIZE = 512 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Driver ¶
type Driver struct { Device // contains filtered or unexported fields }
func (*Driver) CloseSnapshot ¶
func (*Driver) CompareSnapshot ¶
func (*Driver) CreateSnapshot ¶
func (*Driver) DeleteSnapshot ¶
func (*Driver) DeleteVolume ¶
func (*Driver) HasSnapshot ¶
func (*Driver) ListVolume ¶
func (*Driver) OpenSnapshot ¶
Click to show internal directories.
Click to hide internal directories.