Re: [libvirt] [PATCH v4 6/7] util: Introduce virFileWaitForExists

2017-09-20 Thread John Ferlan
On 09/18/2017 12:34 PM, Erik Skultety wrote: > Since we have a number of places where we workaround timing issues with > devices, attributes (files in general) not being available at the time > of processing them by calling usleep in a loop for a fixed number of > tries, we could as well have a u

[libvirt] [PATCH v4 6/7] util: Introduce virFileWaitForExists

2017-09-18 Thread Erik Skultety
Since we have a number of places where we workaround timing issues with devices, attributes (files in general) not being available at the time of processing them by calling usleep in a loop for a fixed number of tries, we could as well have a utility function that would do that. Therefore we won't