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

[libvirt] [PATCH v2 0/6] Add support for lock failure action



When sanlock is used as a locking driver and sanlock deamon loses access to its
lockspace, it automatically kills off the domains that had their locks stored
there. Apparently some management apps would like to change this behavior by
configuring what should happen when locks are lost.

Patch 3/7 from v1 was dropped in v2. Other patches were updated according to
review comments. More details may be found in each patch.

Jiri Denemark (6):
  conf: Rename life cycle actions to event actions
  conf: Add on_lockfailure event configuration
  locking: Add const char * parameter to avoid ugly typecasts
  locking: Pass hypervisor driver name when acquiring locks
  locking: Add support for lock failure action
  locking: Implement lock failure action in sanlock driver

 docs/formatdomain.html.in         |  37 ++++++++--
 docs/internals/locking.html.in    |   8 +++
 docs/locking.html.in              |  24 +++++++
 docs/schemas/domaincommon.rng     |  30 +++++++--
 libvirt.spec.in                   |   1 +
 po/POTFILES.in                    |   1 +
 src/Makefile.am                   |  13 +++-
 src/conf/domain_conf.c            |  85 ++++++++++++++---------
 src/conf/domain_conf.h            |  18 ++++-
 src/libvirt_private.syms          |   2 +
 src/locking/domain_lock.c         |  36 ++++++----
 src/locking/domain_lock.h         |   4 ++
 src/locking/lock_driver.h         |   8 ++-
 src/locking/lock_driver_nop.c     |   1 +
 src/locking/lock_driver_sanlock.c | 114 +++++++++++++++++++++++++++----
 src/locking/lock_manager.c        |  10 ++-
 src/locking/lock_manager.h        |   1 +
 src/locking/sanlock_helper.c      | 138 ++++++++++++++++++++++++++++++++++++++
 src/qemu/qemu_conf.h              |   1 +
 src/qemu/qemu_driver.c            |   9 +--
 src/qemu/qemu_hotplug.c           |  15 +++--
 src/qemu/qemu_process.c           |   4 +-
 22 files changed, 479 insertions(+), 81 deletions(-)
 create mode 100644 src/locking/sanlock_helper.c

-- 
1.7.12


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