{"modulePath":"github.com/hyperhq/hyperd","version":"v1.1.0","isLatest":true,"isStandardLibrary":false,"goos":"linux","goarch":"amd64","docs":"# package devicemapper\n\n## Functions\n\n```go\nfunc CreateNewDevice(containerId, devPrefix, rootPath string) error\n```\n\n```go\nfunc CreatePool(dm *DeviceMapper) error\n```\n\n```go\nfunc CreateVolume(poolName, volName, dev_id, mkfs string, size int, restore bool) error\n```\n\n```go\nfunc DMCleanup(dm *DeviceMapper) error\n```\nDelete the pool which is created in 'Init' function\n\n```go\nfunc DeleteVolume(dm *DeviceMapper, dev_id int) error\n```\n\n```go\nfunc InjectFile(src io.Reader, containerId, devPrefix, target, basePath string, perm, uid, gid int) error\n```\n\n```go\nfunc MountContainerToSharedDir(containerId, sharedDir, devPrefix string) (string, error)\n```\nFor device mapper, we do not need to mount the container to sharedDir. All of we need to provide the block device name of container.\n\n```go\nfunc ProbeFsType(device string) (string, error)\n```\n\n```go\nfunc UnmapVolume(deviceFullPath string) error\n```\n\n## Types\n\n```go\ntype DeviceMapper struct {\n\tDatafile         string\n\tMetadatafile     string\n\tDataLoopFile     string\n\tMetadataLoopFile string\n\tSize             int\n\tPoolName         string\n}\n```\n\n","path":"github.com/hyperhq/hyperd/storage/devicemapper","name":"devicemapper","synopsis":"","isRedistributable":true}
