Documentation ¶
Index ¶
- func DmCreate(lv1, lv2, dmName string) error
- func DmRemove(dmPath string) error
- func ExtendLvSize(vg string, size int64) (int64, error)
- func GetLvNames(vg string) ([]string, error)
- func GetLvOrigin(lvPath string) (string, error)
- func GetLvSize(lvPath string) (int64, error)
- func GetQcow2LvSize(sizeMb int64) int64
- func LVActive(lvPath string, share, exclusive bool) error
- func LVDeactivate(lvPath string) error
- func LvCreate(vg, lv string, size int64) error
- func LvCreateFromSnapshot(lv, snapShotPath string, size int64) error
- func LvIsActivated(lvPath string) (bool, error)
- func LvRemove(lvPath string) error
- func LvRename(vgName, oldName, newName string) error
- func LvResize(vg, lvPath string, size int64) error
- func LvScan() error
- func VgActive(vgName string, active bool) error
- func VgDisplay(vgName string) error
- type LvActive
- type LvNames
- type LvOrigin
- type VgProps
- type VgReports
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLvNames ¶
func GetLvOrigin ¶
func GetQcow2LvSize ¶
func LVDeactivate ¶
func LvCreateFromSnapshot ¶
func LvIsActivated ¶
Types ¶
type LvActive ¶
type LvActive struct { Report []struct { LV []struct { LvActive string `json:"lv_active"` } `json:"lv"` } `json:"report"` }
type LvNames ¶
type LvNames struct { Report []struct { LV []struct { LVName string `json:"lv_name"` } `json:"lv"` } `json:"report"` }
type LvOrigin ¶
type LvOrigin struct { Report []struct { LV []struct { Origin string `json:"origin"` } `json:"lv"` } `json:"report"` }
type VgProps ¶
func GetVgProps ¶
Click to show internal directories.
Click to hide internal directories.