libvirt/tests
Daniel P. Berrange 1ea83207c8 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
2011-06-02 10:54:00 +01:00
..
capabilityschemadata
commanddata
confdata
cputestdata
domainschemadata
domainsnapshotxml2xmlin
domainsnapshotxml2xmlout
interfaceschemadata
networkxml2xmlin Give each virtual network bridge its own fixed MAC address 2011-02-17 13:36:32 -05:00
networkxml2xmlout Give each virtual network bridge its own fixed MAC address 2011-02-17 13:36:32 -05:00
nodedevschemadata
nodeinfodata
nwfilterxml2xmlin nwfilter: enable filtering of gratuitous ARP packets 2011-05-23 19:41:18 -04:00
nwfilterxml2xmlout nwfilter: enable filtering of gratuitous ARP packets 2011-05-23 19:41:18 -04:00
qemuhelpdata Add txmode attribute to interface XML for virtio backend 2011-02-17 11:07:58 -05:00
qemuxml2argvdata Support leases in guest XML and lock manager 2011-06-02 10:54:00 +01:00
qemuxml2xmloutdata Introduce virDomainChrDefNew() 2011-04-14 10:29:39 -06:00
sexpr2xmldata xen: parse and generate hpet item in sxpr 2011-05-10 16:16:55 -06:00
storagepoolxml2xmlin
storagepoolxml2xmlout
storagevolxml2xmlin
storagevolxml2xmlout
vmx2xmldata esx: Fix regression in absolute file name handling 2011-05-26 23:32:44 +02:00
xencapsdata
xmconfigdata Fix order of disks and controllers 2011-06-01 19:11:58 +02:00
xml2sexprdata xen: parse and generate hpet item in sxpr 2011-05-10 16:16:55 -06:00
xml2vmxdata esx: Fix regression in absolute file name handling 2011-05-26 23:32:44 +02:00
.gitignore
.valgrind.supp tests: suppress more valgrind situations 2011-05-03 08:03:39 -06:00
capabilityschematest
commandhelper.c build: fix getcwd portability problems 2011-04-29 12:08:26 -06:00
commandtest.c tests: avoid crash when run under gcov 2011-05-11 09:58:35 -06:00
conftest.c tests: Lower stack usage below 4096 bytes 2011-04-30 19:59:52 +02:00
cpuset
cputest.c maint: rename virBufferVSprintf to virBufferAsprintf 2011-05-05 13:47:40 -06:00
daemon-conf
define-dev-segfault
domainschematest
domainsnapshotschematest
esxutilstest.c time_t is not a long on FreeBSD, switch internal type to long long 2011-05-25 18:47:33 +02:00
eventtest.c tests: simplify common setup 2011-04-29 10:21:20 -06:00
hashdata.h tests: More unit tests for internal hash APIs 2011-04-27 15:32:30 +02:00
hashtest.c hash: fix memory leak regression 2011-04-29 14:26:40 -06:00
int-overflow tests: don't alter state in $HOME 2011-03-28 09:55:46 -06:00
interfaceschematest
interfacexml2xmltest.c tests: Lower stack usage below 4096 bytes 2011-04-30 19:59:52 +02:00
libvirtd-fail
libvirtd-pool
Makefile.am openvz: Add simple testcase for config file parsing function 2011-05-26 22:43:40 +02:00
networkschematest
networkxml2xmltest.c tests: Lower stack usage below 4096 bytes 2011-04-30 19:59:52 +02:00
nodedevschematest
nodedevxml2xmltest.c tests: Lower stack usage below 4096 bytes 2011-04-30 19:59:52 +02:00
nodeinfotest.c tests: Lower stack usage below 4096 bytes 2011-04-30 19:59:52 +02:00
nwfilterschematest
nwfilterxml2xmltest.c tests: Lower stack usage below 4096 bytes 2011-04-30 19:59:52 +02:00
object-locking.ml
oomtrace.pl maint: mark more perl scripts executable 2011-05-16 10:12:21 -06:00
openvzutilstest.c openvz: Add simple test for openvzReadNetworkConf 2011-06-01 11:58:15 +02:00
openvzutilstest.conf openvz: Add simple test for openvzReadNetworkConf 2011-06-01 11:58:15 +02:00
qemuargv2xmltest.c tests: Lower stack usage below 4096 bytes 2011-04-30 19:59:52 +02:00
qemuhelptest.c qemu: fix typo in name - should be VHOST_NET, not VNET_HOST 2011-05-24 10:45:55 -04:00
qemuxml2argvtest.c tests: Add a test for correct disk device ordering 2011-06-01 19:14:08 +02:00
qemuxml2xmltest.c Support leases in guest XML and lock manager 2011-06-02 10:54:00 +01:00
qparamtest.c tests: simplify common setup 2011-04-29 10:21:20 -06:00
read-bufsiz
read-non-seekable
reconnect.c
schematestutils.sh
seclabeltest.c
sexpr2xmltest.c xen: parse and generate hpet item in sxpr 2011-05-10 16:16:55 -06:00
sockettest.c tests: simplify common setup 2011-04-29 10:21:20 -06:00
start
statstest.c tests: simplify common setup 2011-04-29 10:21:20 -06:00
storagepoolschematest
storagepoolxml2xmltest.c tests: Lower stack usage below 4096 bytes 2011-04-30 19:59:52 +02:00
storagevolschematest
storagevolxml2xmltest.c tests: Lower stack usage below 4096 bytes 2011-04-30 19:59:52 +02:00
test_conf.sh
test-lib.sh
testutils.c tests: Lower stack usage below 4096 bytes 2011-04-30 19:59:52 +02:00
testutils.h tests: Lower stack usage below 4096 bytes 2011-04-30 19:59:52 +02:00
testutilsqemu.c tests: Fake host capabilities properly 2011-02-15 22:51:37 +01:00
testutilsqemu.h
testutilsxen.c
testutilsxen.h
undefine
vcpupin
virbuftest.c maint: rename virBufferVSprintf to virBufferAsprintf 2011-05-05 13:47:40 -06:00
virsh-all
virsh-optparse tests: test recent virsh option parsing changes 2011-04-15 16:19:22 -06:00
virsh-schedinfo
virsh-synopsis
virshtest.c tests: Lower stack usage below 4096 bytes 2011-04-30 19:59:52 +02:00
virt-aa-helper-test
vmx2xmltest.c esx: Fix regression in absolute file name handling 2011-05-26 23:32:44 +02:00
xencapstest.c tests: Lower stack usage below 4096 bytes 2011-04-30 19:59:52 +02:00
xmconfigtest.c xen: parse and generate hpet item in sxpr 2011-05-10 16:16:55 -06:00
xml2sexprtest.c xen: parse and generate hpet item in sxpr 2011-05-10 16:16:55 -06:00
xml2vmxtest.c esx: Fix regression in absolute file name handling 2011-05-26 23:32:44 +02:00