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

Chris Lalancette clalance at redhat.com
Thu Jun 12 14:09:39 UTC 2008


This rather large patch rewrites the virStorageBackendISCSIFindLUNs() function
to only rely on sysfs for finding LUNs, given a session number.  Along the way,
it also fixes the bug where we wouldn't find LUNs for older kernels (with the
block:sda format), and also (possibly) fixes a race condition where we could try
to find the LUN before udev has finished connecting it.  I say it "possibly"
fixes it because I haven't been able to hit it so far, but I definitely need
more testing to try and confirm.

Signed-off-by: Chris Lalancette <clalance at redhat.com>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirt-iscsi-rewrite-findluns.patch
Type: text/x-patch
Size: 11175 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080612/cae4566a/attachment-0001.bin>


More information about the libvir-list mailing list