]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Support leases in guest XML and lock manager
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 9 Dec 2010 18:25:11 +0000 (18:25 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 2 Jun 2011 09:54:00 +0000 (10:54 +0100)
commit1ea83207c815e12b1ef60f48a4663e12fbc59687
tree0b11bc14850f3d9487073addd07e270712ffc478
parent285c2fdf0ffa8effad0c2b27b862055be4791801
Support leases in guest XML and lock manager

A lock manager may operate in various modes. The direct mode of
operation is to obtain locks based on the resources associated
with devices in the XML. The indirect mode is where the app
creating the domain provides explicit leases for each resource
that needs to be locked. This XML extension allows for listing
resources in the XML

  <devices>
     ...
     <lease>
       <lockspace>somearea</lockspace>
       <key>thequickbrownfoxjumpsoverthelazydog</key>
       <target path='/some/lease/path' offset='23432'/>
     </lease>
     ...
  </devices>

The 'lockspace' is a unique identifier for the lockspace which
the lease is associated

The 'key' is a unique identifier for the resource associated
with the lease.

The 'target' is the file on disk where the leases are held.

* docs/schemas/domain.rng: Add lease schema
* src/conf/domain_conf.c, src/conf/domain_conf.h: parsing and
  formatting for leases
* tests/qemuxml2argvdata/qemuxml2argv-lease.args,
  tests/qemuxml2argvdata/qemuxml2argv-lease.xml,
  tests/qemuxml2xmltest.c: Test XML handling for leases
docs/formatdomain.html.in
docs/schemas/domain.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
tests/qemuxml2argvdata/qemuxml2argv-lease.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-lease.xml [new file with mode: 0644]
tests/qemuxml2xmltest.c