[pve-devel] [PATCH cluster v2 0/7][RESEND] corosync config parser refactoring and a WIP of QDevice

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Sep 14 10:00:34 CEST 2017


This is a resend of my last iteration, code wise nothing changed but
it did not apply on current master, so I respinned it.

First 5 patches should be ready for comitting, but the last two are
rather RFC/WIP and for people who'd like to test (easy) qdevice setup
now. But if someone gives them a (high level) review I'd be still
very gratefull.
I send them together as they are a bit related and build upon
eachother.


cheers,
Thomas

Thomas Lamprecht (7):
  pvecm: remove Data::Dumper
  pvecm: import often needed run_command
  corosync config parser: move to hash format
  corosync: transform config to allow easier access
  corosync: add atomic_write_conf and cleanup
  WIP: add foreach_member
  WIP: add and delete qdevice

 data/PVE/API2/ClusterConfig.pm                 |   4 +-
 data/PVE/CLI/pvecm.pm                          | 225 +++++++++++++++++++++++--
 data/PVE/Cluster.pm                            |  16 ++
 data/PVE/Corosync.pm                           | 224 +++++++++---------------
 data/test/corosync_configs/multiple-nodes.conf |   6 +-
 data/test/corosync_configs/single-node.conf    |   6 +-
 6 files changed, 324 insertions(+), 157 deletions(-)

-- 
2.11.0





More information about the pve-devel mailing list