]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Introduce virFileWaitForExists
authorErik Skultety <eskultet@redhat.com>
Tue, 20 Jun 2017 14:09:33 +0000 (16:09 +0200)
committerErik Skultety <eskultet@redhat.com>
Thu, 19 Oct 2017 06:54:53 +0000 (08:54 +0200)
commitcaf26412b691bf6a7cb34b9db837b92a4e6eb689
tree1b995ff8896e748908653d958f9a7d6a54fedd99
parentcdbe13329a76ef0a2def601546f6baa6462de632
util: Introduce virFileWaitForExists

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 have to duplicate this ugly workaround even more.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
src/libvirt_private.syms
src/util/virfile.c
src/util/virfile.h