Documentation ¶
Index ¶
- Constants
- func Init() error
- func QemuNbdConnect(imageInfo qemuimg.SImageInfo, nbddev string) error
- func QemuNbdDisconnect(nbddev string) error
- type NBDDriver
- func (d *NBDDriver) Connect() error
- func (d *NBDDriver) Disconnect() error
- func (d *NBDDriver) FormatPartition(fs, uuid string) error
- func (d *NBDDriver) GetPartitions() []fsdriver.IDiskPartition
- func (d *NBDDriver) IsLVMPartition() bool
- func (d *NBDDriver) MakePartition(fs string) error
- func (d *NBDDriver) ResizePartition() error
- func (d *NBDDriver) Zerofree()
- type SKVMGuestLVMPartition
- type SLVMImageConnectUniqueToolSet
- type SNBDManager
- type SVG
Constants ¶
View Source
const ( PATH_TYPE_UNKNOWN = 0 LVM_PATH = 1 NON_LVM_PATH = 2 )
View Source
const MAX_TRIES = 3
Variables ¶
This section is empty.
Functions ¶
func QemuNbdConnect ¶
func QemuNbdConnect(imageInfo qemuimg.SImageInfo, nbddev string) error
func QemuNbdDisconnect ¶
Types ¶
type NBDDriver ¶
type NBDDriver struct {
// contains filtered or unexported fields
}
func NewNBDDriver ¶
func NewNBDDriver(imageInfo qemuimg.SImageInfo) *NBDDriver
func (*NBDDriver) Disconnect ¶
func (*NBDDriver) FormatPartition ¶
func (*NBDDriver) GetPartitions ¶
func (d *NBDDriver) GetPartitions() []fsdriver.IDiskPartition
func (*NBDDriver) IsLVMPartition ¶
func (*NBDDriver) MakePartition ¶
func (*NBDDriver) ResizePartition ¶
type SKVMGuestLVMPartition ¶
type SKVMGuestLVMPartition struct {
// contains filtered or unexported fields
}
func NewKVMGuestLVMPartition ¶
func NewKVMGuestLVMPartition(partDev string, vg SVG) *SKVMGuestLVMPartition
func (*SKVMGuestLVMPartition) FindPartitions ¶
func (p *SKVMGuestLVMPartition) FindPartitions() []*kvmpart.SKVMGuestDiskPartition
func (*SKVMGuestLVMPartition) PutdownDevice ¶
func (p *SKVMGuestLVMPartition) PutdownDevice() bool
func (*SKVMGuestLVMPartition) SetupDevice ¶
func (p *SKVMGuestLVMPartition) SetupDevice() bool
type SLVMImageConnectUniqueToolSet ¶
type SLVMImageConnectUniqueToolSet struct {
// contains filtered or unexported fields
}
func NewLVMImageConnectUniqueToolSet ¶
func NewLVMImageConnectUniqueToolSet() *SLVMImageConnectUniqueToolSet
func (*SLVMImageConnectUniqueToolSet) Acquire ¶
func (s *SLVMImageConnectUniqueToolSet) Acquire(imagePath string)
func (*SLVMImageConnectUniqueToolSet) CacheNonLvmImagePath ¶
func (s *SLVMImageConnectUniqueToolSet) CacheNonLvmImagePath(imagePath string)
func (*SLVMImageConnectUniqueToolSet) GetPathType ¶
func (s *SLVMImageConnectUniqueToolSet) GetPathType(imagePath string) int
func (*SLVMImageConnectUniqueToolSet) Release ¶
func (s *SLVMImageConnectUniqueToolSet) Release(imagePath string)
type SNBDManager ¶
type SNBDManager struct {
// contains filtered or unexported fields
}
func GetNBDManager ¶
func GetNBDManager() *SNBDManager
func NewNBDManager ¶
func NewNBDManager() (*SNBDManager, error)
func (*SNBDManager) AcquireNbddev ¶
func (m *SNBDManager) AcquireNbddev() string
func (*SNBDManager) ReleaseNbddev ¶
func (m *SNBDManager) ReleaseNbddev(nbddev string)
Click to show internal directories.
Click to hide internal directories.