Re: [libvirt] [PATCH 07/11] storage_scsi: Translate the stable address into scsi host number

2013-06-19 Thread John Ferlan
On 06/07/2013 01:03 PM, Osier Yang wrote: This takes use of the two utils introduced in previous patches. Node device HAL backend represents PCI device like PCI_8086_2922, (I.E PCI_$vendor_$product), to get the PCI address, we have to traverse /sys/devices/ to find it out. And to get the

Re: [libvirt] [PATCH 07/11] storage_scsi: Translate the stable address into scsi host number

2013-06-19 Thread Osier Yang
On 20/06/13 00:35, John Ferlan wrote: On 06/07/2013 01:03 PM, Osier Yang wrote: This takes use of the two utils introduced in previous patches. Node device HAL backend represents PCI device like PCI_8086_2922, (I.E PCI_$vendor_$product), to get the PCI address, we have to traverse

[libvirt] [PATCH 07/11] storage_scsi: Translate the stable address into scsi host number

2013-06-07 Thread Osier Yang
This takes use of the two utils introduced in previous patches. Node device HAL backend represents PCI device like PCI_8086_2922, (I.E PCI_$vendor_$product), to get the PCI address, we have to traverse /sys/devices/ to find it out. And to get the current scsi host number assigned by the system