mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-05 12:35:20 +00:00
Fix node device media insert/eject detection.
We were correctly registering a callback , but weren't telling hal to actually notify us of any property changes.
This commit is contained in:
parent
6244c173ba
commit
5f99a7fd23
@ -1,3 +1,8 @@
|
|||||||
|
Tue May 19 09:26:53 EDT 2009 Cole Robinson <crobinso@redhat.com>
|
||||||
|
|
||||||
|
* src/node_device_hal.c: Fix node device media insert/eject
|
||||||
|
detection.
|
||||||
|
|
||||||
Tue May 19 09:24:54 EDT 2009 Cole Robinson <crobinso@redhat.com>
|
Tue May 19 09:24:54 EDT 2009 Cole Robinson <crobinso@redhat.com>
|
||||||
|
|
||||||
* src/node_device_hal.c: Fix a possible deadlock in HAL nodedev
|
* src/node_device_hal.c: Fix a possible deadlock in HAL nodedev
|
||||||
|
@ -725,7 +725,8 @@ static int halDeviceMonitorStartup(void)
|
|||||||
!libhal_ctx_set_device_removed(hal_ctx, device_removed) ||
|
!libhal_ctx_set_device_removed(hal_ctx, device_removed) ||
|
||||||
!libhal_ctx_set_device_new_capability(hal_ctx, device_cap_added) ||
|
!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_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__);
|
fprintf(stderr, "%s: setting up HAL callbacks failed\n", __FUNCTION__);
|
||||||
goto failure;
|
goto failure;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user