]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nodedev: udev: Introduce udevEventMonitorSanityCheck helper function
authorErik Skultety <eskultet@redhat.com>
Wed, 26 Jul 2017 13:16:09 +0000 (15:16 +0200)
committerErik Skultety <eskultet@redhat.com>
Thu, 19 Oct 2017 06:54:53 +0000 (08:54 +0200)
commitc6a16d3c64e77a2ace408e4c24839b8ef242ed5a
tree31b8ea26355f8086dc82259193995f2a0fc26f2e
parent643c74abff012ca03d3b8a6da2747c60baa2f25c
nodedev: udev: Introduce udevEventMonitorSanityCheck helper function

We need to perform a sanity check on the udev monitor before every
use so that we know nothing has changed in the meantime. The reason for
moving the code to a separate helper is to enhance readability and shift
the focus on the important stuff within the udevEventHandleCallback
handler.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
src/node_device/node_device_udev.c