Add Get/SetBlockIoTune to go-libvirt API. (#45)
* Add Get/SetBlockIoTune to go-libvirt API. This adds two libvirt entry points to the go-libvirt API: virDomainSetBlockIoTune and virDomainGetBlockIoTune. These can be used to control block device throttling for a VM.
This commit is contained in:
@@ -53,6 +53,8 @@ const (
|
||||
ProcDomainUndefineFlags = 231
|
||||
ProcDomainDestroyFlags = 234
|
||||
ProcDomainReset = 245
|
||||
ProcDomainSetBlockIOTune = 252
|
||||
ProcDomainGetBlockIOTune = 253
|
||||
ProcDomainShutdownFlags = 258
|
||||
ProcConnectListAllDomains = 273
|
||||
ProcConnectListAllStoragePools = 281
|
||||
@@ -78,4 +80,8 @@ const (
|
||||
|
||||
// UUIDSize is the length of a UUID, in bytes.
|
||||
UUIDSize = 16
|
||||
|
||||
// TypedParamFieldLength is VIR_TYPED_PARAM_FIELD_LENGTH, and is the maximum
|
||||
// length of the Field string in virTypedParameter structs.
|
||||
TypedParamFieldLength = 80
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user