Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
b0aa088f
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,发现更多精彩内容 >>
提交
b0aa088f
编写于
3月 14, 2017
作者:
P
Peter Krempa
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tests: qemumonitorjson: Test node name detection on networked storage
上级
2a50c18f
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
146 addition
and
0 deletion
+146
-0
tests/qemumonitorjsondata/qemumonitorjson-nodename-gluster.json
...qemumonitorjsondata/qemumonitorjson-nodename-gluster.json
+135
-0
tests/qemumonitorjsondata/qemumonitorjson-nodename-gluster.result
...mumonitorjsondata/qemumonitorjson-nodename-gluster.result
+10
-0
tests/qemumonitorjsontest.c
tests/qemumonitorjsontest.c
+1
-0
未找到文件。
tests/qemumonitorjsondata/qemumonitorjson-nodename-gluster.json
0 → 100644
浏览文件 @
b0aa088f
[
{
"iops_rd"
:
0
,
"detect_zeroes"
:
"off"
,
"image"
:
{
"backing-image"
:
{
"virtual-size"
:
197120
,
"filename"
:
"gluster://gluster-host/vol0/img0"
,
"format"
:
"raw"
,
"actual-size"
:
197120
},
"backing-filename-format"
:
"raw"
,
"virtual-size"
:
197120
,
"filename"
:
"gluster://gluster-host/vol0/img1"
,
"cluster-size"
:
65536
,
"format"
:
"qcow2"
,
"actual-size"
:
197120
,
"format-specific"
:
{
"type"
:
"qcow2"
,
"data"
:
{
"compat"
:
"1.1"
,
"lazy-refcounts"
:
false
,
"refcount-bits"
:
16
,
"corrupt"
:
false
}
},
"full-backing-filename"
:
"gluster://gluster-host/vol0/img0"
,
"backing-filename"
:
"gluster://gluster-host/vol0/img0"
,
"dirty-flag"
:
false
},
"iops_wr"
:
0
,
"ro"
:
false
,
"node-name"
:
"#block1008"
,
"backing_file_depth"
:
1
,
"drv"
:
"qcow2"
,
"iops"
:
0
,
"bps_wr"
:
0
,
"write_threshold"
:
0
,
"backing_file"
:
"gluster://gluster-host/vol0/img0"
,
"encrypted"
:
false
,
"bps"
:
0
,
"bps_rd"
:
0
,
"cache"
:
{
"no-flush"
:
false
,
"direct"
:
true
,
"writeback"
:
true
},
"file"
:
"gluster://gluster-host/vol0/img1"
,
"encryption_key_missing"
:
false
},
{
"iops_rd"
:
0
,
"detect_zeroes"
:
"off"
,
"image"
:
{
"virtual-size"
:
197120
,
"filename"
:
"gluster://gluster-host/vol0/img1"
,
"format"
:
"gluster"
,
"actual-size"
:
197120
},
"iops_wr"
:
0
,
"ro"
:
false
,
"node-name"
:
"#block981"
,
"backing_file_depth"
:
0
,
"drv"
:
"gluster"
,
"iops"
:
0
,
"bps_wr"
:
0
,
"write_threshold"
:
0
,
"encrypted"
:
false
,
"bps"
:
0
,
"bps_rd"
:
0
,
"cache"
:
{
"no-flush"
:
false
,
"direct"
:
true
,
"writeback"
:
true
},
"file"
:
"gluster://gluster-host/vol0/img1"
,
"encryption_key_missing"
:
false
},
{
"iops_rd"
:
0
,
"detect_zeroes"
:
"off"
,
"image"
:
{
"virtual-size"
:
197120
,
"filename"
:
"gluster://gluster-host/vol0/img0"
,
"format"
:
"raw"
,
"actual-size"
:
197120
},
"iops_wr"
:
0
,
"ro"
:
true
,
"node-name"
:
"#block349"
,
"backing_file_depth"
:
0
,
"drv"
:
"raw"
,
"iops"
:
0
,
"bps_wr"
:
0
,
"write_threshold"
:
0
,
"encrypted"
:
false
,
"bps"
:
0
,
"bps_rd"
:
0
,
"cache"
:
{
"no-flush"
:
false
,
"direct"
:
true
,
"writeback"
:
true
},
"file"
:
"gluster://gluster-host/vol0/img0"
,
"encryption_key_missing"
:
false
},
{
"iops_rd"
:
0
,
"detect_zeroes"
:
"off"
,
"image"
:
{
"virtual-size"
:
197120
,
"filename"
:
"gluster://gluster-host/vol0/img0"
,
"format"
:
"gluster"
,
"actual-size"
:
197120
},
"iops_wr"
:
0
,
"ro"
:
true
,
"node-name"
:
"#block269"
,
"backing_file_depth"
:
0
,
"drv"
:
"gluster"
,
"iops"
:
0
,
"bps_wr"
:
0
,
"write_threshold"
:
0
,
"encrypted"
:
false
,
"bps"
:
0
,
"bps_rd"
:
0
,
"cache"
:
{
"no-flush"
:
false
,
"direct"
:
true
,
"writeback"
:
true
},
"file"
:
"gluster://gluster-host/vol0/img0"
,
"encryption_key_missing"
:
false
}
]
tests/qemumonitorjsondata/qemumonitorjson-nodename-gluster.result
0 → 100644
浏览文件 @
b0aa088f
filename : 'gluster://gluster-host/vol0/img1'
format node : '#block1008'
storage node: '#block981'
backingfile : 'gluster://gluster-host/vol0/img0'
backing ptr : '#block349'
filename : 'gluster://gluster-host/vol0/img0'
format node : '#block349'
storage node: '#block269'
backingfile : '<null>'
backing ptr : '<null>'
tests/qemumonitorjsontest.c
浏览文件 @
b0aa088f
...
...
@@ -2932,6 +2932,7 @@ mymain(void)
DO_TEST_BLOCK_NODE_DETECT
(
"2"
,
"#block161"
);
DO_TEST_BLOCK_NODE_DETECT
(
"same-backing"
,
"#block170,#block574"
);
DO_TEST_BLOCK_NODE_DETECT
(
"relative"
,
"#block153,#block1177"
);
DO_TEST_BLOCK_NODE_DETECT
(
"gluster"
,
"#block1008"
);
#undef DO_TEST_BLOCK_NODE_DETECT
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录