Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
03f37365
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,发现更多精彩内容 >>
提交
03f37365
编写于
5月 05, 2009
作者:
C
Cole Robinson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Small cleanups in test driver VolCreateXML
上级
2a9ca741
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
5 addition
and
5 deletion
+5
-5
ChangeLog
ChangeLog
+4
-0
src/test.c
src/test.c
+1
-5
未找到文件。
ChangeLog
浏览文件 @
03f37365
Tue May 5 10:19:14 EDT 2009 Cole Robinson <crobinso@redhat.com>
* src/test.c: Small cleanups in test driver VolCreateXML
Tue May 5 10:18:15 EDT 2009 Cole Robinson <crobinso@redhat.com>
Tue May 5 10:18:15 EDT 2009 Cole Robinson <crobinso@redhat.com>
* src/storage_driver.c: Remove some debug code from storage_driver.c
* src/storage_driver.c: Remove some debug code from storage_driver.c
...
...
src/test.c
浏览文件 @
03f37365
...
@@ -3076,20 +3076,18 @@ testStorageVolumeCreateXML(virStoragePoolPtr pool,
...
@@ -3076,20 +3076,18 @@ testStorageVolumeCreateXML(virStoragePoolPtr pool,
goto
cleanup
;
goto
cleanup
;
}
}
if
(
!
virStoragePoolObjIsActive
(
privpool
))
{
if
(
!
virStoragePoolObjIsActive
(
privpool
))
{
testError
(
pool
->
conn
,
VIR_ERR_INTERNAL_ERROR
,
testError
(
pool
->
conn
,
VIR_ERR_INTERNAL_ERROR
,
_
(
"storage pool '%s' is not active"
),
pool
->
name
);
_
(
"storage pool '%s' is not active"
),
pool
->
name
);
goto
cleanup
;
goto
cleanup
;
}
}
privvol
=
virStorageVolDefParse
(
pool
->
conn
,
privpool
->
def
,
xmldesc
,
NULL
);
privvol
=
virStorageVolDefParse
(
pool
->
conn
,
privpool
->
def
,
xmldesc
,
NULL
);
if
(
privvol
==
NULL
)
if
(
privvol
==
NULL
)
goto
cleanup
;
goto
cleanup
;
if
(
virStorageVolDefFindByName
(
privpool
,
privvol
->
name
))
{
if
(
virStorageVolDefFindByName
(
privpool
,
privvol
->
name
))
{
testError
(
pool
->
conn
,
VIR_ERR_INVALID_STORAGE_
PO
OL
,
testError
(
pool
->
conn
,
VIR_ERR_INVALID_STORAGE_
V
OL
,
"%s"
,
_
(
"storage vol already exists"
));
"%s"
,
_
(
"storage vol already exists"
));
goto
cleanup
;
goto
cleanup
;
}
}
...
@@ -3102,8 +3100,6 @@ testStorageVolumeCreateXML(virStoragePoolPtr pool,
...
@@ -3102,8 +3100,6 @@ testStorageVolumeCreateXML(virStoragePoolPtr pool,
privvol
->
name
);
privvol
->
name
);
goto
cleanup
;
goto
cleanup
;
}
}
privpool
->
def
->
available
=
(
privpool
->
def
->
capacity
-
privpool
->
def
->
allocation
);
if
(
VIR_REALLOC_N
(
privpool
->
volumes
.
objs
,
if
(
VIR_REALLOC_N
(
privpool
->
volumes
.
objs
,
privpool
->
volumes
.
count
+
1
)
<
0
)
{
privpool
->
volumes
.
count
+
1
)
<
0
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录