[libvirt] [RFC 5/5]: Rewrite findLuns function

Stefan de Konink skinkie at xs4all.nl
Thu Jun 12 14:58:36 UTC 2008


Chris Lalancette schreef:
> # cat /sys/bus/scsi/devices/3:0:0:0/model

skinkie at xen01 ~ $ cat /sys/bus/scsi/devices/3:0:0:0/model
SOLARIS

skinkie at xen01 ~ $ cat /sys/bus/scsi/devices/2\:0\:0\:0/model
LUN

> and
> 
> # cat /sys/bus/scsi/devices/3:0:0:0/type

skinkie at xen01 ~ $ cat /sys/bus/scsi/devices/3:0:0:0/type
0

skinkie at xen01 ~ $ cat /sys/bus/scsi/devices/2\:0\:0\:0/type
0

> from both your netapp target and your sun target?  Here, at least, for our
> "control" LUN, model returns "Controller" while for the real LUNs model returns
> "VIRTUAL-DISK", so I'm hoping I can distinguish somehow based on what is in
> model, and if not that, based on type.

What does the Controller actually do on a 'Linux' target?


Stefan




More information about the libvir-list mailing list