Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
6be35f5f
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看板
提交
6be35f5f
编写于
6月 15, 2011
作者:
M
Matthias Bolte
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remote: Generate virDomainGetBlockPullInfo
It was already generatable but skipped.
上级
7ea9778c
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
2 addition
and
70 deletion
+2
-70
daemon/remote.c
daemon/remote.c
+0
-36
src/remote/remote_driver.c
src/remote/remote_driver.c
+0
-32
src/remote/remote_protocol.x
src/remote/remote_protocol.x
+2
-2
未找到文件。
daemon/remote.c
浏览文件 @
6be35f5f
...
...
@@ -1737,42 +1737,6 @@ cleanup:
return
rv
;
}
static
int
remoteDispatchDomainGetBlockPullInfo
(
struct
qemud_server
*
server
ATTRIBUTE_UNUSED
,
struct
qemud_client
*
client
ATTRIBUTE_UNUSED
,
virConnectPtr
conn
,
remote_message_header
*
hdr
ATTRIBUTE_UNUSED
,
remote_error
*
rerr
,
remote_domain_get_block_pull_info_args
*
args
,
remote_domain_get_block_pull_info_ret
*
ret
)
{
virDomainPtr
dom
=
NULL
;
virDomainBlockPullInfo
tmp
;
int
rv
=
-
1
;
if
(
!
conn
)
{
virNetError
(
VIR_ERR_INTERNAL_ERROR
,
"%s"
,
_
(
"connection not open"
));
goto
cleanup
;
}
if
(
!
(
dom
=
get_nonnull_domain
(
conn
,
args
->
dom
)))
goto
cleanup
;
if
(
virDomainGetBlockPullInfo
(
dom
,
args
->
path
,
&
tmp
,
args
->
flags
)
<
0
)
goto
cleanup
;
ret
->
cur
=
tmp
.
cur
;
ret
->
end
=
tmp
.
end
;
rv
=
0
;
cleanup:
if
(
rv
<
0
)
remoteDispatchError
(
rerr
);
if
(
dom
)
virDomainFree
(
dom
);
return
rv
;
}
/*-------------------------------------------------------------*/
static
int
...
...
src/remote/remote_driver.c
浏览文件 @
6be35f5f
...
...
@@ -2671,38 +2671,6 @@ done:
return
rv
;
}
static
int
remoteDomainGetBlockPullInfo
(
virDomainPtr
domain
,
const
char
*
path
,
virDomainBlockPullInfoPtr
info
,
unsigned
int
flags
)
{
int
rv
=
-
1
;
remote_domain_get_block_pull_info_args
args
;
remote_domain_get_block_pull_info_ret
ret
;
struct
private_data
*
priv
=
domain
->
conn
->
privateData
;
remoteDriverLock
(
priv
);
make_nonnull_domain
(
&
args
.
dom
,
domain
);
args
.
path
=
(
char
*
)
path
;
args
.
flags
=
flags
;
if
(
call
(
domain
->
conn
,
priv
,
0
,
REMOTE_PROC_DOMAIN_GET_BLOCK_PULL_INFO
,
(
xdrproc_t
)
xdr_remote_domain_get_block_pull_info_args
,
(
char
*
)
&
args
,
(
xdrproc_t
)
xdr_remote_domain_get_block_pull_info_ret
,
(
char
*
)
&
ret
)
==
-
1
)
goto
done
;
info
->
cur
=
ret
.
cur
;
info
->
end
=
ret
.
end
;
rv
=
0
;
done:
remoteDriverUnlock
(
priv
);
return
rv
;
}
/*----------------------------------------------------------------------*/
static
virDrvOpenStatus
ATTRIBUTE_NONNULL
(
1
)
...
...
src/remote/remote_protocol.x
浏览文件 @
6be35f5f
...
...
@@ -1003,7 +1003,7 @@ struct remote_domain_get_block_pull_info_args {
unsigned
int
flags
;
};
struct
remote_domain_get_block_pull_info_ret
{
struct
remote_domain_get_block_pull_info_ret
{
/* insert@2 */
unsigned
hyper
cur
;
unsigned
hyper
end
;
};
...
...
@@ -2420,7 +2420,7 @@ enum remote_procedure {
REMOTE_PROC_DOMAIN_BLOCK_PULL_ALL
=
230
,
/* autogen autogen */
REMOTE_PROC_DOMAIN_BLOCK_PULL_ABORT
=
231
,
/* autogen autogen */
REMOTE_PROC_DOMAIN_GET_BLOCK_PULL_INFO
=
232
,
/*
skipgen skip
gen */
REMOTE_PROC_DOMAIN_GET_BLOCK_PULL_INFO
=
232
,
/*
autogen auto
gen */
REMOTE_PROC_DOMAIN_EVENT_BLOCK_PULL
=
233
,
/* skipgen skipgen */
REMOTE_PROC_DOMAIN_GET_CONTROL_INFO
=
234
/* autogen autogen */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录