[libvirt] [PATCH 1/2]: Give /dev/disk/by-{id, path} a chance to exist

Chris Lalancette clalance at redhat.com
Wed Nov 26 16:08:47 UTC 2008


This patch is the same idea as my previous patch for giving
/dev/disk/by-{id,path} a chance to exist.  Currently libvirt can race with udev
creation of /dev/disk/by-{id,path}, so if we fail to open the directory, retry
up to 5 seconds.  This is only likely to happen on hosts that are:

1) diskless (so /dev/disk/by-{id,path} doesn't exist already), and
2) slow, and/or heavily loaded (meaning that udev can take some time to create
the /dev nodes).

Based on the feedback from Dan and Jim, I updated the patch to look more like
what is elsewhere in libvirt.

Signed-off-by: Chris Lalancette <clalance at redhat.com>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: libvirt-stable-path-wait.patch
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20081126/d9ec5ce2/attachment-0001.ksh>


More information about the libvir-list mailing list