[libvirt] [PATCH] Fix node device media insert/eject detection.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We were correctly registering a callback , but weren't telling hal to
actually notify us of any property changes.
---
 src/node_device_hal.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/node_device_hal.c b/src/node_device_hal.c
index e9ea163..b0955e8 100644
--- a/src/node_device_hal.c
+++ b/src/node_device_hal.c
@@ -725,7 +725,8 @@ static int halDeviceMonitorStartup(void)
         !libhal_ctx_set_device_removed(hal_ctx, device_removed) ||
         !libhal_ctx_set_device_new_capability(hal_ctx, device_cap_added) ||
         !libhal_ctx_set_device_lost_capability(hal_ctx, device_cap_lost) ||
-        !libhal_ctx_set_device_property_modified(hal_ctx, device_prop_modified)) {
+        !libhal_ctx_set_device_property_modified(hal_ctx, device_prop_modified) ||
+        !libhal_device_property_watch_all(hal_ctx, &err))    {
         fprintf(stderr, "%s: setting up HAL callbacks failed\n", __FUNCTION__);
         goto failure;
     }
-- 
1.6.2.2

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]