mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Add unique_id to nodedev output
Add an optional unique_id parameter to nodedev. Allows for easier lookup and display of the unique_id value in order to document for use with scsi_host code.
This commit is contained in:
@@ -47,6 +47,12 @@ detect_scsi_host_caps(union _virNodeDevCapData *d)
|
||||
char *vports = NULL;
|
||||
int ret = -1;
|
||||
|
||||
if (virReadSCSIUniqueId(NULL, d->scsi_host.host,
|
||||
&d->scsi_host.unique_id) < 0) {
|
||||
VIR_DEBUG("Failed to read unique_id for host%d", d->scsi_host.host);
|
||||
d->scsi_host.unique_id = -1;
|
||||
}
|
||||
|
||||
VIR_DEBUG("Checking if host%d is an FC HBA", d->scsi_host.host);
|
||||
|
||||
if (virIsCapableFCHost(NULL, d->scsi_host.host)) {
|
||||
|
||||
Reference in New Issue
Block a user