[libvirt] [PATCH 2/2]: Call udevsettle in the appropriate places

Chris Lalancette clalance at redhat.com
Mon Dec 1 12:02:19 UTC 2008


Daniel P. Berrange wrote:
> This seems rather overkill when you could just do
> 
> #if defined(UDEVADM) || defined(UDEVSETTLE)
> void virStorageBackendWaitForDevices(virConnectPtr conn)
> {
> #ifdef UDEVADM
>     const char *const settleprog[] = { UDEVADM, "settle", NULL };
> #else
>     const char *const settleprog[] = { UDEVSETTLE, NULL };
> #endif
>     int exitstatus;

OK, updated patch attached that basically does the above, and adds the
configure.in test.

Signed-off-by: Chris Lalancette <clalance at redhat.com>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: libvirt-udevsettle-compat-v2.patch
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20081201/2c9bd175/attachment-0001.ksh>


More information about the libvir-list mailing list