Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDevice ¶
func CreateDevice(name string, flags CreateFlags, targets []Target) (_ string, err error)
CreateDevice creates a device-mapper device with the given target spec. It returns the path of the new device node.
func RemoveDevice ¶
RemoveDevice removes a device-mapper device and its associated device node.
Types ¶
type CreateFlags ¶
type CreateFlags int
CreateFlags modify the operation of CreateDevice
const ( // CreateReadOnly specifies that the device is not writable CreateReadOnly CreateFlags = 1 << iota )
Click to show internal directories.
Click to hide internal directories.