]> xenbits.xensource.com Git - libvirt.git/commit
Instead of relying solely on polling for /dev devices to appear in libvirt, we
authorChris Lalancette <clalance@redhat.com>
Fri, 28 Nov 2008 07:50:20 +0000 (07:50 +0000)
committerChris Lalancette <clalance@redhat.com>
Fri, 28 Nov 2008 07:50:20 +0000 (07:50 +0000)
commita9567e09ef43ab01f7beb4c1d1c2ff4aef13fca2
tree1d545e867a024db63344f79fb75612bfd4497960
parentd20d6b1bb05f131c3f4285940caef66ed35e821f
Instead of relying solely on polling for /dev devices to appear in libvirt, we
really should be synchronizing against udev.  This is generally done by a call
to udevsettle, which is exactly what this patch implements for the storage
backends that are likely to create new /dev nodes.  I believe I've read that
even after udevsettle, you are not guaranteed that devices are all the way
created, so we still need the polling in the rest of the sources, but this
should give us a much better chance of things existing as we expect.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
configure.in
src/storage_backend.c
src/storage_backend.h
src/storage_backend_disk.c
src/storage_backend_iscsi.c
src/storage_backend_logical.c