Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
1d12ca39
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,体验更适合开发者的 AI 搜索 >>
提交
1d12ca39
编写于
6月 05, 2013
作者:
P
Peter Krempa
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
storage: Clean up function header and reflow error message
Comply with the coding standard and save a few lines.
上级
b922c3d5
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
14 addition
and
11 deletion
+14
-11
src/storage/storage_backend.c
src/storage/storage_backend.c
+14
-11
未找到文件。
src/storage/storage_backend.c
浏览文件 @
1d12ca39
...
...
@@ -388,9 +388,8 @@ virStorageBackendCreateRaw(virConnectPtr conn ATTRIBUTE_UNUSED,
virCheckFlags
(
0
,
-
1
);
if
(
vol
->
target
.
encryption
!=
NULL
)
{
virReportError
(
VIR_ERR_CONFIG_UNSUPPORTED
,
"%s"
,
_
(
"storage pool does not support encrypted "
"volumes"
));
virReportError
(
VIR_ERR_CONFIG_UNSUPPORTED
,
"%s"
,
_
(
"storage pool does not support encrypted volumes"
));
goto
cleanup
;
}
...
...
@@ -529,9 +528,11 @@ cleanup:
return
ret
;
}
static
int
virStorageBackendCreateExecCommand
(
virStoragePoolObjPtr
pool
,
virStorageVolDefPtr
vol
,
virCommandPtr
cmd
)
{
static
int
virStorageBackendCreateExecCommand
(
virStoragePoolObjPtr
pool
,
virStorageVolDefPtr
vol
,
virCommandPtr
cmd
)
{
struct
stat
st
;
gid_t
gid
;
uid_t
uid
;
...
...
@@ -594,7 +595,8 @@ enum {
QEMU_IMG_BACKING_FORMAT_OPTIONS
,
};
static
int
virStorageBackendQEMUImgBackingFormat
(
const
char
*
qemuimg
)
static
int
virStorageBackendQEMUImgBackingFormat
(
const
char
*
qemuimg
)
{
char
*
help
=
NULL
;
char
*
start
;
...
...
@@ -996,9 +998,9 @@ virStorageBackendGetBuildVolFromFunction(virStorageVolDefPtr vol,
inputvol
->
target
.
format
!=
VIR_STORAGE_FILE_RAW
))
{
if
((
tool_type
=
virStorageBackendFindFSImageTool
(
NULL
))
<
0
)
{
virReportError
(
VIR_ERR_INTERNAL_ERROR
,
"%s"
,
_
(
"creation of non-raw file images is "
"not supported without qemu-img."
));
virReportError
(
VIR_ERR_INTERNAL_ERROR
,
"%s"
,
_
(
"creation of non-raw file images is "
"not supported without qemu-img."
));
return
NULL
;
}
...
...
@@ -1013,7 +1015,8 @@ virStorageBackendGetBuildVolFromFunction(virStorageVolDefPtr vol,
virStorageBackendPtr
virStorageBackendForType
(
int
type
)
{
virStorageBackendForType
(
int
type
)
{
unsigned
int
i
;
for
(
i
=
0
;
backends
[
i
];
i
++
)
if
(
backends
[
i
]
->
type
==
type
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录