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

Stefan de Konink skinkie at xs4all.nl
Thu Jun 12 14:35:49 UTC 2008

Chris Lalancette schreef:
> Stefan de Konink wrote:
>>>> Who told you/anyone who wrote this code before that the 0th lun cannot 
>>>> be a real entry? This assumption is wrong.
>>> Well, that particular piece of code isn't looking at the 0'th LUN, but there is
>>> code below that that is.  However, the code here is generally looking for block
>>> devices, and the 0'th LUN is definitely not a block device.  Given that, I'm not
>>> sure what else you would want to do with 0th LUN; can you give me some examples?
>> The 0th LUN can be a perfect block device.
> OK, cool, I misunderstood.  Given that, can you give me the output of:
> # ls -l /sys/bus/scsi/devices/3:0:0:0
> Just to make sure I get the right thing?

skinkie at xen01 ~ $ ls -l /sys/bus/scsi/devices/3:0:0:0
lrwxrwxrwx 1 root root 0 May 26 11:28 /sys/bus/scsi/devices/3:0:0:0 -> 

skinkie at xen01 ~ $ ls 
block:sdar  device_blocked  generic        iodone_cnt  iorequest_cnt 
queue_depth  rescan  scsi_level  subsystem  type    vendor
delete      driver          iocounterbits  ioerr_cnt   model 
queue_type   rev     state       timeout    uevent

skinkie at xen01 ~ $ cat 


More information about the libvir-list mailing list