[PATCH v2 0/8] Introducing node device lifecycle event APIs

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

 



Introducing implementation of node device event APIs. Code changes
follow network/storage pool event APIs.

Implemented functions: virNodeDeviceEventRegisterAny(),
virNodeDeviceEventDeregisterAny(), virNodeDeviceLifeCycleEventNew(),
introduced CREATED and DELETED.

There are also test as well as unittests for the new functions and signals.

This is part of a GSOC project: Asynchronous lifecycle events for storage objects

Jovanka Gulicoska (8):
  Introduce node device lifecycle event APIs
  conf: add node_device_event handling
  test: implement node device lifecycle event APIs
  remote: implement node device lifecycle event APIs
  node_device: implement node device lifecycle event APIs
  node_device: Implement event queue in udev
  event-test: support node device lifecycle event APIs
  virsh: Introduce nodedev-event command

 daemon/libvirtd.h                    |   2 +
 daemon/remote.c                      | 206 ++++++++++++++++++++++++++++++
 examples/object-events/event-test.c  |  68 ++++++++++
 include/libvirt/libvirt-nodedev.h    |  90 ++++++++++++++
 po/POTFILES.in                       |   1 +
 src/Makefile.am                      |   5 +
 src/conf/node_device_conf.h          |   4 +
 src/conf/node_device_event.c         | 234 +++++++++++++++++++++++++++++++++++
 src/conf/node_device_event.h         |  59 +++++++++
 src/datatypes.h                      |  13 ++
 src/driver-nodedev.h                 |  14 +++
 src/libvirt-nodedev.c                | 127 +++++++++++++++++++
 src/libvirt_private.syms             |   5 +
 src/libvirt_public.syms              |   6 +
 src/node_device/node_device_driver.c |  42 +++++++
 src/node_device/node_device_driver.h |  10 ++
 src/node_device/node_device_udev.c   |  46 +++++--
 src/remote/remote_driver.c           | 139 +++++++++++++++++++++
 src/remote/remote_protocol.x         |  43 ++++++-
 src/remote_protocol-structs          |  19 +++
 src/test/test_driver.c               |  48 +++++++
 tests/objecteventtest.c              |  72 +++++++++++
 tools/virsh-nodedev.c                | 182 +++++++++++++++++++++++++++
 tools/virsh.pod                      |  18 +++
 24 files changed, 1443 insertions(+), 10 deletions(-)
 create mode 100644 src/conf/node_device_event.c
 create mode 100644 src/conf/node_device_event.h

-- 
2.7.4

--
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]