]> git.proxmox.com Git - mirror_qemu.git/commit - qga/commands-win32.c
qga: add implementation of guest-get-disks for Windows
authorTomáš Golembiovský <tgolembi@redhat.com>
Mon, 12 Oct 2020 08:36:03 +0000 (10:36 +0200)
committerMichael Roth <michael.roth@amd.com>
Mon, 2 Nov 2020 17:36:16 +0000 (11:36 -0600)
commitc67d2efd9d1771fd886e3b58771adaa62897f3d9
treebcd11d1fbad5f23be555fa7754716063b97d6316
parentfed3956429d560a06fc2d2fcf1a01efb58659f87
qga: add implementation of guest-get-disks for Windows

The command lists all the physical disk drives. Unlike for Linux
partitions and virtual volumes are not listed.

Example output:

{
  "return": [
    {
      "name": "\\\\.\\PhysicalDrive0",
      "partition": false,
      "address": {
        "serial": "QM00001",
        "bus-type": "sata",
        ...
      },
      "dependents": []
    }
  ]
}

Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
Signed-off-by: Michael Roth <michael.roth@amd.com>
qga/commands-win32.c