diff options
| author | Tomáš Golembiovský | 2018-10-23 13:23:11 +0200 |
|---|---|---|
| committer | Michael Roth | 2018-10-31 15:04:20 +0100 |
| commit | b616105a904bc350a409e12c39af0ae210900124 (patch) | |
| tree | 66ebdc81146703d0824a550bf6a62f1f94d5f977 /qga/qapi-schema.json | |
| parent | configure: add test for libudev (diff) | |
| download | qemu-b616105a904bc350a409e12c39af0ae210900124.tar.gz qemu-b616105a904bc350a409e12c39af0ae210900124.tar.xz qemu-b616105a904bc350a409e12c39af0ae210900124.zip | |
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>
Diffstat (limited to 'qga/qapi-schema.json')
| -rw-r--r-- | qga/qapi-schema.json | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qga/qapi-schema.json b/qga/qapi-schema.json index dfbc4a5e32..3bcda6257e 100644 --- a/qga/qapi-schema.json +++ b/qga/qapi-schema.json @@ -834,13 +834,15 @@ # @bus: bus id # @target: target id # @unit: unit id +# @serial: serial number (since: 3.1) # # Since: 2.2 ## { 'struct': 'GuestDiskAddress', 'data': {'pci-controller': 'GuestPCIAddress', 'bus-type': 'GuestDiskBusType', - 'bus': 'int', 'target': 'int', 'unit': 'int'} } + 'bus': 'int', 'target': 'int', 'unit': 'int', + '*serial': 'str'} } ## # @GuestFilesystemInfo: |
