Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
1445f34b
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1445f34b
编写于
4月 17, 2014
作者:
J
Jiri Denemark
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tests: Test backing store XML formatting and parsing
Signed-off-by:
N
Jiri Denemark
<
jdenemar@redhat.com
>
上级
022ccd3d
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
251 addition
and
0 deletion
+251
-0
tests/qemuxml2argvdata/qemuxml2argv-disk-backing-chains.xml
tests/qemuxml2argvdata/qemuxml2argv-disk-backing-chains.xml
+94
-0
tests/qemuxml2xmloutdata/qemuxml2xmlout-disk-backing-chains-active.xml
...2xmloutdata/qemuxml2xmlout-disk-backing-chains-active.xml
+96
-0
tests/qemuxml2xmloutdata/qemuxml2xmlout-disk-backing-chains-inactive.xml
...mloutdata/qemuxml2xmlout-disk-backing-chains-inactive.xml
+59
-0
tests/qemuxml2xmltest.c
tests/qemuxml2xmltest.c
+2
-0
未找到文件。
tests/qemuxml2argvdata/qemuxml2argv-disk-backing-chains.xml
0 → 100644
浏览文件 @
1445f34b
<domain
type=
'qemu'
id=
'1'
>
<name>
QEMUGuest1
</name>
<uuid>
c7a5fdbd-edaf-9455-926a-d65c16db1809
</uuid>
<memory
unit=
'KiB'
>
219136
</memory>
<currentMemory
unit=
'KiB'
>
219136
</currentMemory>
<vcpu
placement=
'static'
>
1
</vcpu>
<os>
<type
arch=
'i686'
machine=
'pc'
>
hvm
</type>
<boot
dev=
'hd'
/>
</os>
<clock
offset=
'utc'
/>
<on_poweroff>
destroy
</on_poweroff>
<on_reboot>
restart
</on_reboot>
<on_crash>
destroy
</on_crash>
<devices>
<emulator>
/usr/bin/qemu
</emulator>
<disk
type=
'network'
device=
'disk'
>
<driver
name=
'qemu'
type=
'qcow2'
/>
<source
protocol=
'gluster'
name=
'Volume2/Image'
>
<host
transport=
'unix'
socket=
'/path/to/sock'
/>
</source>
<backingStore
type=
'file'
index=
'1'
>
<format
type=
'qcow2'
/>
<source
file=
'/tmp/missing-backing-store.qcow'
/>
</backingStore>
<target
dev=
'vda'
bus=
'virtio'
/>
</disk>
<disk
type=
'network'
device=
'disk'
>
<driver
name=
'qemu'
type=
'qcow2'
/>
<source
protocol=
'nbd'
name=
'bar'
>
<host
transport=
'unix'
socket=
'/var/run/nbdsock'
/>
</source>
<backingStore
type=
'block'
index=
'1'
>
<format
type=
'qcow2'
/>
<source
dev=
'/dev/HostVG/QEMUGuest1'
/>
<backingStore
type=
'file'
index=
'2'
>
<format
type=
'qcow2'
/>
<source
file=
'/tmp/image2.qcow'
/>
<backingStore
type=
'file'
index=
'3'
>
<format
type=
'qcow2'
/>
<source
file=
'/tmp/image3.qcow'
/>
<backingStore
type=
'file'
index=
'4'
>
<format
type=
'qcow2'
/>
<source
file=
'/tmp/image4.qcow'
/>
<backingStore
type=
'file'
index=
'5'
>
<source
file=
'/tmp/image5.qcow'
/>
<format
type=
'qcow2'
/>
<backingStore
type=
'file'
index=
'6'
>
<format
type=
'raw'
/>
<source
file=
'/tmp/Fedora-17-x86_64-Live-KDE.iso'
/>
<backingStore/>
</backingStore>
</backingStore>
</backingStore>
</backingStore>
</backingStore>
</backingStore>
<target
dev=
'vdb'
bus=
'virtio'
/>
</disk>
<disk
type=
'network'
device=
'disk'
>
<driver
name=
'qemu'
type=
'raw'
/>
<backingStore/>
<source
protocol=
'gluster'
name=
'Volume1/Image'
>
<host
name=
'example.org'
port=
'6000'
/>
</source>
<target
dev=
'vdc'
bus=
'virtio'
/>
</disk>
<disk
type=
'network'
device=
'disk'
>
<driver
name=
'qemu'
type=
'qcow2'
/>
<auth
username=
'myname'
>
<secret
type=
'ceph'
usage=
'mycluster_myname'
/>
</auth>
<source
protocol=
'rbd'
name=
'pool/image'
>
<host
name=
'mon1.example.org'
port=
'6321'
/>
<host
name=
'mon2.example.org'
port=
'6322'
/>
<host
name=
'mon3.example.org'
port=
'6322'
/>
</source>
<backingStore
type=
'file'
index=
'1'
>
<source
file=
'/tmp/image.qcow'
/>
<backingStore/>
<format
type=
'qcow2'
/>
</backingStore>
<target
dev=
'vdd'
bus=
'virtio'
/>
</disk>
<disk
type=
'block'
device=
'disk'
>
<driver
name=
'qemu'
type=
'qcow2'
/>
<source
dev=
'/dev/HostVG/QEMUGuest11'
/>
<target
dev=
'vde'
bus=
'virtio'
/>
</disk>
<controller
type=
'usb'
index=
'0'
/>
<controller
type=
'pci'
index=
'0'
model=
'pci-root'
/>
<memballoon
model=
'virtio'
/>
</devices>
</domain>
tests/qemuxml2xmloutdata/qemuxml2xmlout-disk-backing-chains-active.xml
0 → 100644
浏览文件 @
1445f34b
<domain
type=
'qemu'
id=
'1'
>
<name>
QEMUGuest1
</name>
<uuid>
c7a5fdbd-edaf-9455-926a-d65c16db1809
</uuid>
<memory
unit=
'KiB'
>
219136
</memory>
<currentMemory
unit=
'KiB'
>
219136
</currentMemory>
<vcpu
placement=
'static'
>
1
</vcpu>
<os>
<type
arch=
'i686'
machine=
'pc'
>
hvm
</type>
<boot
dev=
'hd'
/>
</os>
<clock
offset=
'utc'
/>
<on_poweroff>
destroy
</on_poweroff>
<on_reboot>
restart
</on_reboot>
<on_crash>
destroy
</on_crash>
<devices>
<emulator>
/usr/bin/qemu
</emulator>
<disk
type=
'network'
device=
'disk'
>
<driver
name=
'qemu'
type=
'qcow2'
/>
<source
protocol=
'gluster'
name=
'Volume2/Image'
>
<host
transport=
'unix'
socket=
'/path/to/sock'
/>
</source>
<backingStore
type=
'file'
index=
'1'
>
<format
type=
'qcow2'
/>
<source
file=
'/tmp/missing-backing-store.qcow'
/>
<backingStore/>
</backingStore>
<target
dev=
'vda'
bus=
'virtio'
/>
</disk>
<disk
type=
'network'
device=
'disk'
>
<driver
name=
'qemu'
type=
'qcow2'
/>
<source
protocol=
'nbd'
name=
'bar'
>
<host
transport=
'unix'
socket=
'/var/run/nbdsock'
/>
</source>
<backingStore
type=
'block'
index=
'1'
>
<format
type=
'qcow2'
/>
<source
dev=
'/dev/HostVG/QEMUGuest1'
/>
<backingStore
type=
'file'
index=
'2'
>
<format
type=
'qcow2'
/>
<source
file=
'/tmp/image2.qcow'
/>
<backingStore
type=
'file'
index=
'3'
>
<format
type=
'qcow2'
/>
<source
file=
'/tmp/image3.qcow'
/>
<backingStore
type=
'file'
index=
'4'
>
<format
type=
'qcow2'
/>
<source
file=
'/tmp/image4.qcow'
/>
<backingStore
type=
'file'
index=
'5'
>
<format
type=
'qcow2'
/>
<source
file=
'/tmp/image5.qcow'
/>
<backingStore
type=
'file'
index=
'6'
>
<format
type=
'raw'
/>
<source
file=
'/tmp/Fedora-17-x86_64-Live-KDE.iso'
/>
<backingStore/>
</backingStore>
</backingStore>
</backingStore>
</backingStore>
</backingStore>
</backingStore>
<target
dev=
'vdb'
bus=
'virtio'
/>
</disk>
<disk
type=
'network'
device=
'disk'
>
<driver
name=
'qemu'
type=
'raw'
/>
<source
protocol=
'gluster'
name=
'Volume1/Image'
>
<host
name=
'example.org'
port=
'6000'
/>
</source>
<backingStore/>
<target
dev=
'vdc'
bus=
'virtio'
/>
</disk>
<disk
type=
'network'
device=
'disk'
>
<driver
name=
'qemu'
type=
'qcow2'
/>
<auth
username=
'myname'
>
<secret
type=
'ceph'
usage=
'mycluster_myname'
/>
</auth>
<source
protocol=
'rbd'
name=
'pool/image'
>
<host
name=
'mon1.example.org'
port=
'6321'
/>
<host
name=
'mon2.example.org'
port=
'6322'
/>
<host
name=
'mon3.example.org'
port=
'6322'
/>
</source>
<backingStore
type=
'file'
index=
'1'
>
<format
type=
'qcow2'
/>
<source
file=
'/tmp/image.qcow'
/>
<backingStore/>
</backingStore>
<target
dev=
'vdd'
bus=
'virtio'
/>
</disk>
<disk
type=
'block'
device=
'disk'
>
<driver
name=
'qemu'
type=
'qcow2'
/>
<source
dev=
'/dev/HostVG/QEMUGuest11'
/>
<backingStore/>
<target
dev=
'vde'
bus=
'virtio'
/>
</disk>
<controller
type=
'usb'
index=
'0'
/>
<controller
type=
'pci'
index=
'0'
model=
'pci-root'
/>
<memballoon
model=
'virtio'
/>
</devices>
</domain>
tests/qemuxml2xmloutdata/qemuxml2xmlout-disk-backing-chains-inactive.xml
0 → 100644
浏览文件 @
1445f34b
<domain
type=
'qemu'
>
<name>
QEMUGuest1
</name>
<uuid>
c7a5fdbd-edaf-9455-926a-d65c16db1809
</uuid>
<memory
unit=
'KiB'
>
219136
</memory>
<currentMemory
unit=
'KiB'
>
219136
</currentMemory>
<vcpu
placement=
'static'
>
1
</vcpu>
<os>
<type
arch=
'i686'
machine=
'pc'
>
hvm
</type>
<boot
dev=
'hd'
/>
</os>
<clock
offset=
'utc'
/>
<on_poweroff>
destroy
</on_poweroff>
<on_reboot>
restart
</on_reboot>
<on_crash>
destroy
</on_crash>
<devices>
<emulator>
/usr/bin/qemu
</emulator>
<disk
type=
'network'
device=
'disk'
>
<driver
name=
'qemu'
type=
'qcow2'
/>
<source
protocol=
'gluster'
name=
'Volume2/Image'
>
<host
transport=
'unix'
socket=
'/path/to/sock'
/>
</source>
<target
dev=
'vda'
bus=
'virtio'
/>
</disk>
<disk
type=
'network'
device=
'disk'
>
<driver
name=
'qemu'
type=
'qcow2'
/>
<source
protocol=
'nbd'
name=
'bar'
>
<host
transport=
'unix'
socket=
'/var/run/nbdsock'
/>
</source>
<target
dev=
'vdb'
bus=
'virtio'
/>
</disk>
<disk
type=
'network'
device=
'disk'
>
<driver
name=
'qemu'
type=
'raw'
/>
<source
protocol=
'gluster'
name=
'Volume1/Image'
>
<host
name=
'example.org'
port=
'6000'
/>
</source>
<target
dev=
'vdc'
bus=
'virtio'
/>
</disk>
<disk
type=
'network'
device=
'disk'
>
<driver
name=
'qemu'
type=
'qcow2'
/>
<auth
username=
'myname'
>
<secret
type=
'ceph'
usage=
'mycluster_myname'
/>
</auth>
<source
protocol=
'rbd'
name=
'pool/image'
>
<host
name=
'mon1.example.org'
port=
'6321'
/>
<host
name=
'mon2.example.org'
port=
'6322'
/>
<host
name=
'mon3.example.org'
port=
'6322'
/>
</source>
<target
dev=
'vdd'
bus=
'virtio'
/>
</disk>
<disk
type=
'block'
device=
'disk'
>
<driver
name=
'qemu'
type=
'qcow2'
/>
<source
dev=
'/dev/HostVG/QEMUGuest11'
/>
<target
dev=
'vde'
bus=
'virtio'
/>
</disk>
<controller
type=
'usb'
index=
'0'
/>
<controller
type=
'pci'
index=
'0'
model=
'pci-root'
/>
<memballoon
model=
'virtio'
/>
</devices>
</domain>
tests/qemuxml2xmltest.c
浏览文件 @
1445f34b
...
...
@@ -360,6 +360,8 @@ mymain(void)
DO_TEST
(
"panic"
);
DO_TEST_DIFFERENT
(
"disk-backing-chains"
);
virObjectUnref
(
driver
.
caps
);
virObjectUnref
(
driver
.
xmlopt
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录