LibvirtGObject.DomainDisk

g GObject.Object GObject.Object LibvirtGObject.DomainDevice LibvirtGObject.DomainDevice GObject.Object->LibvirtGObject.DomainDevice LibvirtGObject.DomainDisk LibvirtGObject.DomainDisk LibvirtGObject.DomainDevice->LibvirtGObject.DomainDisk

Subclasses:

None

Methods

Inherited:

LibvirtGObject.DomainDevice (2), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_stats ()

resize (size, flags)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

LibvirtGObject.DomainDevice (2)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

LibvirtGObject.DomainDevice

r

Class Details

class LibvirtGObject.DomainDisk(**kwargs)
Bases:

LibvirtGObject.DomainDevice

Abstract:

No

Structure:

LibvirtGObject.DomainDiskClass

get_stats()
Raises:

GLib.Error

Returns:

the stats or None in case of error.The returned object should be unreffed with GObject.Object.unref() when no longer needed.

Return type:

LibvirtGObject.DomainDiskStats

This function returns network disk stats. Individual fields within the stats structure may be returned as -1, which indicates that the hypervisor does not support that particular statistic.

resize(size, flags)
Parameters:
  • size (int) – new size of the block image in kilobytes

  • flags (int) – flags, currently unused. Pass ‘0’.

Raises:

GLib.Error

Returns:

True if size was successfully changed, False otherwise.

Return type:

bool

This function resize the disk of a running domain.