Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
8c725cc1
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看板
提交
8c725cc1
编写于
8月 26, 2013
作者:
P
Peter Krempa
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
virsh-domain: rename print_job_progress to vshPrintJobProgress
上级
745aa55f
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
12 addition
and
12 deletion
+12
-12
tools/virsh-domain.c
tools/virsh-domain.c
+12
-12
未找到文件。
tools/virsh-domain.c
浏览文件 @
8c725cc1
...
...
@@ -1452,8 +1452,8 @@ cleanup:
}
static
void
print_job_p
rogress
(
const
char
*
label
,
unsigned
long
long
remaining
,
unsigned
long
long
total
)
vshPrintJobP
rogress
(
const
char
*
label
,
unsigned
long
long
remaining
,
unsigned
long
long
total
)
{
int
progress
;
...
...
@@ -1624,8 +1624,8 @@ cmdBlockCommit(vshControl *ctl, const vshCmd *cmd)
break
;
if
(
verbose
)
print_job_p
rogress
(
_
(
"Block Commit"
),
info
.
end
-
info
.
cur
,
info
.
end
);
vshPrintJobP
rogress
(
_
(
"Block Commit"
),
info
.
end
-
info
.
cur
,
info
.
end
);
GETTIMEOFDAY
(
&
curr
);
if
(
intCaught
||
(
timeout
&&
...
...
@@ -1650,7 +1650,7 @@ cmdBlockCommit(vshControl *ctl, const vshCmd *cmd)
if
(
verbose
&&
!
quit
)
{
/* printf [100 %] */
print_job_p
rogress
(
_
(
"Block Commit"
),
0
,
1
);
vshPrintJobP
rogress
(
_
(
"Block Commit"
),
0
,
1
);
}
vshPrint
(
ctl
,
"
\n
%s"
,
quit
?
_
(
"Commit aborted"
)
:
_
(
"Commit complete"
));
...
...
@@ -1818,7 +1818,7 @@ cmdBlockCopy(vshControl *ctl, const vshCmd *cmd)
break
;
if
(
verbose
)
print_job_p
rogress
(
_
(
"Block Copy"
),
info
.
end
-
info
.
cur
,
info
.
end
);
vshPrintJobP
rogress
(
_
(
"Block Copy"
),
info
.
end
-
info
.
cur
,
info
.
end
);
if
(
info
.
cur
==
info
.
end
)
break
;
...
...
@@ -1961,7 +1961,7 @@ cmdBlockJob(vshControl *ctl, const vshCmd *cmd)
break
;
}
print_job_p
rogress
(
type
,
info
.
end
-
info
.
cur
,
info
.
end
);
vshPrintJobP
rogress
(
type
,
info
.
end
-
info
.
cur
,
info
.
end
);
if
(
info
.
bandwidth
!=
0
)
vshPrint
(
ctl
,
_
(
" Bandwidth limit: %lu MiB/s
\n
"
),
info
.
bandwidth
);
return
true
;
...
...
@@ -2095,7 +2095,7 @@ cmdBlockPull(vshControl *ctl, const vshCmd *cmd)
break
;
if
(
verbose
)
print_job_p
rogress
(
_
(
"Block Pull"
),
info
.
end
-
info
.
cur
,
info
.
end
);
vshPrintJobP
rogress
(
_
(
"Block Pull"
),
info
.
end
-
info
.
cur
,
info
.
end
);
GETTIMEOFDAY
(
&
curr
);
if
(
intCaught
||
(
timeout
&&
...
...
@@ -2120,7 +2120,7 @@ cmdBlockPull(vshControl *ctl, const vshCmd *cmd)
if
(
verbose
&&
!
quit
)
{
/* printf [100 %] */
print_job_p
rogress
(
_
(
"Block Pull"
),
0
,
1
);
vshPrintJobP
rogress
(
_
(
"Block Pull"
),
0
,
1
);
}
vshPrint
(
ctl
,
"
\n
%s"
,
quit
?
_
(
"Pull aborted"
)
:
_
(
"Pull complete"
));
...
...
@@ -3553,7 +3553,7 @@ repoll:
retchar
==
'0'
)
{
if
(
verbose
)
{
/* print [100 %] */
print_job_p
rogress
(
label
,
0
,
1
);
vshPrintJobP
rogress
(
label
,
0
,
1
);
}
break
;
}
...
...
@@ -3588,8 +3588,8 @@ repoll:
ret
=
virDomainGetJobInfo
(
dom
,
&
jobinfo
);
pthread_sigmask
(
SIG_SETMASK
,
&
oldsigmask
,
NULL
);
if
(
ret
==
0
)
print_job_p
rogress
(
label
,
jobinfo
.
dataRemaining
,
jobinfo
.
dataTotal
);
vshPrintJobP
rogress
(
label
,
jobinfo
.
dataRemaining
,
jobinfo
.
dataTotal
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录