Documentation ¶
Index ¶
Constants ¶
View Source
const ( CmdQbd string = "qbd" CmdDd string = "dd" )
Variables ¶
This section is empty.
Functions ¶
func AttachVolume ¶
AttachVolume attach volume to current node Input:
configFile: string, qbd config file protocol: string, rdma or tcp poolName: string volName: string
Return:
not nil: failed to attach volume nil: succeed to attach volume
func DetachVolume ¶
DetachVolume detach volume from current node Input:
configFile: string, qbd config file protocol: string, rdma or tcp poolName: string volName: string
Return:
not nil: failed to detach volume nil: succeed to detach volume
Types ¶
type AttachInfo ¶
type AttachInfo struct { Id string Name string Device string Pool string ReadBps int64 WriteBps int64 ReadIops int64 WriteIops int64 }
func ListVolume ¶
func ListVolume(confFile, poolName, volName string) (*AttachInfo, error)
ListVolume get attachment volume info Input:
volume name: string
Return cases:
info, nil: found attached volume nil, nil: not found attached volume nil, err: return error
Click to show internal directories.
Click to hide internal directories.