qga: linux: report disk serial number
commitb616105a904bc350a409e12c39af0ae210900124
authorTomáš Golembiovský <tgolembi@redhat.com>
Tue, 23 Oct 2018 11:23:11 +0000 (23 13:23 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 31 Oct 2018 14:04:20 +0000 (31 09:04 -0500)
tree66ebdc81146703d0824a550bf6a62f1f94d5f977
parent3efac6ebb88e4d099f07fef65178ebaa595ae770
qga: linux: report disk serial number

Add reporting of disk serial number on Linux guests. The feature depends
on libudev.

Example:

    {
      "name": "dm-2",
      "mountpoint": "/",
      ...
      "disk": [
        {
          "serial": "SAMSUNG_MZ7LN512HCHP-000L1_S1ZKNXAG822493",
          ...
        }
      ],
    }

Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/Makefile.objs
qga/commands-posix.c
qga/qapi-schema.json