Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
f61770a1
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看板
You need to sign in or sign up before continuing.
提交
f61770a1
编写于
12月 11, 2015
作者:
J
Ján Tomko
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
virStorageBackendWipeLocal: remove bytes_wiped argument
It is not used by the caller.
上级
c3f7371c
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
4 addition
and
8 deletion
+4
-8
src/storage/storage_backend.c
src/storage/storage_backend.c
+4
-8
未找到文件。
src/storage/storage_backend.c
浏览文件 @
f61770a1
...
@@ -1990,8 +1990,7 @@ static int
...
@@ -1990,8 +1990,7 @@ static int
virStorageBackendWipeLocal
(
virStorageVolDefPtr
vol
,
virStorageBackendWipeLocal
(
virStorageVolDefPtr
vol
,
int
fd
,
int
fd
,
unsigned
long
long
wipe_len
,
unsigned
long
long
wipe_len
,
size_t
writebuf_length
,
size_t
writebuf_length
)
size_t
*
bytes_wiped
)
{
{
int
ret
=
-
1
,
written
=
0
;
int
ret
=
-
1
,
written
=
0
;
unsigned
long
long
remaining
=
0
;
unsigned
long
long
remaining
=
0
;
...
@@ -2025,7 +2024,6 @@ virStorageBackendWipeLocal(virStorageVolDefPtr vol,
...
@@ -2025,7 +2024,6 @@ virStorageBackendWipeLocal(virStorageVolDefPtr vol,
goto
cleanup
;
goto
cleanup
;
}
}
*
bytes_wiped
+=
written
;
remaining
-=
written
;
remaining
-=
written
;
}
}
...
@@ -2036,8 +2034,8 @@ virStorageBackendWipeLocal(virStorageVolDefPtr vol,
...
@@ -2036,8 +2034,8 @@ virStorageBackendWipeLocal(virStorageVolDefPtr vol,
goto
cleanup
;
goto
cleanup
;
}
}
VIR_DEBUG
(
"Wrote %
z
u bytes to volume with path '%s'"
,
VIR_DEBUG
(
"Wrote %
ll
u bytes to volume with path '%s'"
,
*
bytes_wiped
,
vol
->
target
.
path
);
wipe_len
,
vol
->
target
.
path
);
ret
=
0
;
ret
=
0
;
...
@@ -2056,7 +2054,6 @@ virStorageBackendVolWipeLocal(virConnectPtr conn ATTRIBUTE_UNUSED,
...
@@ -2056,7 +2054,6 @@ virStorageBackendVolWipeLocal(virConnectPtr conn ATTRIBUTE_UNUSED,
{
{
int
ret
=
-
1
,
fd
=
-
1
;
int
ret
=
-
1
,
fd
=
-
1
;
struct
stat
st
;
struct
stat
st
;
size_t
bytes_wiped
=
0
;
virCommandPtr
cmd
=
NULL
;
virCommandPtr
cmd
=
NULL
;
virCheckFlags
(
0
,
-
1
);
virCheckFlags
(
0
,
-
1
);
...
@@ -2127,8 +2124,7 @@ virStorageBackendVolWipeLocal(virConnectPtr conn ATTRIBUTE_UNUSED,
...
@@ -2127,8 +2124,7 @@ virStorageBackendVolWipeLocal(virConnectPtr conn ATTRIBUTE_UNUSED,
ret
=
virStorageBackendWipeLocal
(
vol
,
ret
=
virStorageBackendWipeLocal
(
vol
,
fd
,
fd
,
vol
->
target
.
allocation
,
vol
->
target
.
allocation
,
st
.
st_blksize
,
st
.
st_blksize
);
&
bytes_wiped
);
}
}
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录