mirror of
				https://gitlab.com/libvirt/libvirt.git
				synced 2025-11-04 12:24:23 +03:00 
			
		
		
		
	Support virDomain{Set, Get}BlockIoTune in the python API
Python support for both setting and getting block I/O throttle. Signed-off-by: Lei Li <lilei@linux.vnet.ibm.com> Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
		@@ -375,5 +375,21 @@
 | 
			
		||||
      <arg name='flags' type='unsigned int' info='flags, currently unused, pass 0.'/>
 | 
			
		||||
      <return type='unsigned long' info='current max migration speed, or None in case of error'/>
 | 
			
		||||
    </function>
 | 
			
		||||
    <function name='virDomainSetBlockIoTune' file='python'>
 | 
			
		||||
      <info>Change the I/O tunables for a block device</info>
 | 
			
		||||
      <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
 | 
			
		||||
      <arg name='disk' type='const char *' info='disk name'/>
 | 
			
		||||
      <arg name='params' type='virTypedParameterPtr' info='Pointer to blkio tuning params object'/>
 | 
			
		||||
      <arg name='flags' type='unsigned int' info='an OR'ed set of virDomainModificationImpact'/>
 | 
			
		||||
      <return type='int' info='0 in case of success, -1 in case of failure'/>
 | 
			
		||||
    </function>
 | 
			
		||||
    <function name='virDomainGetBlockIoTune' file='python'>
 | 
			
		||||
      <info>Get the I/O tunables for a block device</info>
 | 
			
		||||
      <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
 | 
			
		||||
      <arg name='disk' type='const char *' info='disk name'/>
 | 
			
		||||
      <arg name='params' type='virTypedParameterPtr' info='Pointer to blkio tuning params object'/>
 | 
			
		||||
      <arg name='flags' type='unsigned int' info='an OR'ed set of virDomainModificationImpact'/>
 | 
			
		||||
      <return type='int' info='0 in case of success, -1 in case of failure'/>
 | 
			
		||||
    </function>
 | 
			
		||||
  </symbols>
 | 
			
		||||
</api>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user