VIR_DOMAIN_GUEST_INFO_TIMEZONE = (1 << 2), /* return timezone information */
VIR_DOMAIN_GUEST_INFO_HOSTNAME = (1 << 3), /* return hostname information */
VIR_DOMAIN_GUEST_INFO_FILESYSTEM = (1 << 4), /* return filesystem information */
+ VIR_DOMAIN_GUEST_INFO_DISKS = (1 << 5), /* return disks information */
} virDomainGuestInfoTypes;
int virDomainGetGuestInfo(virDomainPtr domain,
* "fs.<num>.disk.<num>.serial" - the serial number of the disk
* "fs.<num>.disk.<num>.device" - the device node of the disk
*
+ * VIR_DOMAIN_GUEST_INFO_DISKS:
+ * Returns information about the disks within the domain. The typed
+ * parameter keys are in this format:
+ *
+ * "disks.count" - the number of disks defined on this domain
+ * as an unsigned int
+ * "disks.<num>.name" - device node (Linux) or device UNC (Windows)
+ * "disks.<num>.partition" - whether this is a partition or disk
+ * "disks.<num>.dependencies.count" - the number of device dependencies
+ * e.g. for LVs of the LVM this will
+ * hold the list of PVs, for LUKS encrypted volume this will
+ * contain the disk where the volume is placed. (Linux)
+ * "disks.<num>.dependencies.<num>.name" - a dependency
+ * "disks.<num>.alias" - the device alias of the disk (e.g. sda)
+ * "disks.<num>.guest_alias" - optional alias assigned to the disk, on Linux
+ * this is a name assigned by device mapper
+ *
* VIR_DOMAIN_GUEST_INFO_HOSTNAME:
* Returns information about the hostname of the domain. The typed
* parameter keys are in this format: