diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2013-11-12 11:57:56 +0000 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2014-02-20 15:50:46 +0000 |
commit | 432a3fee3b547cb403e16399a16a2c361f73831b (patch) | |
tree | 77bac69dcc508de0d5a22700d5fba77960788b98 /tests/domainconfdata | |
parent | 590029f67251751acbc65ecd52609b407db7b7c5 (diff) | |
download | libvirt-432a3fee3b547cb403e16399a16a2c361f73831b.tar.gz |
Rename virDomainGetRootFilesystem to virDomainGetFilesystemForTarget
The virDomainGetRootFilesystem method can be generalized to allow
any filesystem path to be obtained.
While doing this, start a new test case for purpose of testing various
helper methods in the domain_conf.{c,h} files, such as this one.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'tests/domainconfdata')
-rw-r--r-- | tests/domainconfdata/getfilesystem.xml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/domainconfdata/getfilesystem.xml b/tests/domainconfdata/getfilesystem.xml new file mode 100644 index 0000000000..2ee78b4eb9 --- /dev/null +++ b/tests/domainconfdata/getfilesystem.xml @@ -0,0 +1,28 @@ +<domain type='test'> + <name>demo</name> + <uuid>8369f1ac-7e46-e869-4ca5-759d51478066</uuid> + <memory unit='KiB'>500000</memory> + <currentMemory unit='KiB'>500000</currentMemory> + <vcpu placement='static'>1</vcpu> + <os> + <type arch='x86_64'>hvm</type> + <init>/bin/sh</init> + </os> + <clock offset='utc'/> + <on_poweroff>destroy</on_poweroff> + <on_reboot>restart</on_reboot> + <on_crash>destroy</on_crash> + <devices> + <filesystem type='mount' accessmode='passthrough'> + <source dir='/'/> + <target dir='/'/> + </filesystem> + <filesystem type='mount' accessmode='passthrough'> + <source dir='/'/> + <target dir='/dev'/> + </filesystem> + <console type='pty'> + <target type='lxc' port='0'/> + </console> + </devices> +</domain> |