add-domain: Add readonlydisk optional argument (RHBZ#747290).
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 26 Oct 2011 18:27:01 +0000 (19:27 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 26 Oct 2011 18:29:57 +0000 (19:29 +0100)
commitb893294dcc948d4b41318a400fc4235a190d306b
treee6b2e9b5a5fe93bfe1bcd9fda2606feb08de6575
parent163f7df8452f5d7eb47039a98cd97d498528e4d5
add-domain: Add readonlydisk optional argument (RHBZ#747290).

This optional argument controls how <readonly/> disks in
the libvirt XML are handled.  It can be set to one of:

  "write" (default) - add them R/W
  "read" - add them R/O
  "error" - throw an error if asked to add them R/W
  "ignore" - ignore these disks

I have added limited regression tests for this feature.  However
libvirt's test:/// XML does not allow you to specify that a domain
starts off shut down, so we cannot fully test this.  Instead I tested
it by hand.
generator/generator_actions.ml
regressions/test-add-domain.sh
regressions/test-guestfish-d.sh
src/virt.c