Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
d8460812
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看板
提交
d8460812
编写于
2月 07, 2013
作者:
M
Michal Privoznik
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
virsh-pool.c: Switch to c99 initialization of vshCmdInfo
上级
5986665f
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
133 addition
and
59 deletion
+133
-59
tools/virsh-pool.c
tools/virsh-pool.c
+133
-59
未找到文件。
tools/virsh-pool.c
浏览文件 @
d8460812
...
@@ -78,10 +78,13 @@ vshCommandOptPoolBy(vshControl *ctl, const vshCmd *cmd, const char *optname,
...
@@ -78,10 +78,13 @@ vshCommandOptPoolBy(vshControl *ctl, const vshCmd *cmd, const char *optname,
* "pool-autostart" command
* "pool-autostart" command
*/
*/
static
const
vshCmdInfo
info_pool_autostart
[]
=
{
static
const
vshCmdInfo
info_pool_autostart
[]
=
{
{
"help"
,
N_
(
"autostart a pool"
)},
{.
name
=
"help"
,
{
"desc"
,
.
data
=
N_
(
"autostart a pool"
)
N_
(
"Configure a pool to be automatically started at boot."
)},
},
{
NULL
,
NULL
}
{.
name
=
"desc"
,
.
data
=
N_
(
"Configure a pool to be automatically started at boot."
)
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_pool_autostart
[]
=
{
static
const
vshCmdOptDef
opts_pool_autostart
[]
=
{
...
@@ -132,9 +135,13 @@ cmdPoolAutostart(vshControl *ctl, const vshCmd *cmd)
...
@@ -132,9 +135,13 @@ cmdPoolAutostart(vshControl *ctl, const vshCmd *cmd)
* "pool-create" command
* "pool-create" command
*/
*/
static
const
vshCmdInfo
info_pool_create
[]
=
{
static
const
vshCmdInfo
info_pool_create
[]
=
{
{
"help"
,
N_
(
"create a pool from an XML file"
)},
{.
name
=
"help"
,
{
"desc"
,
N_
(
"Create a pool."
)},
.
data
=
N_
(
"create a pool from an XML file"
)
{
NULL
,
NULL
}
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Create a pool."
)
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_pool_create
[]
=
{
static
const
vshCmdOptDef
opts_pool_create
[]
=
{
...
@@ -293,9 +300,13 @@ cleanup:
...
@@ -293,9 +300,13 @@ cleanup:
* "pool-create-as" command
* "pool-create-as" command
*/
*/
static
const
vshCmdInfo
info_pool_create_as
[]
=
{
static
const
vshCmdInfo
info_pool_create_as
[]
=
{
{
"help"
,
N_
(
"create a pool from a set of args"
)},
{.
name
=
"help"
,
{
"desc"
,
N_
(
"Create a pool."
)},
.
data
=
N_
(
"create a pool from a set of args"
)
{
NULL
,
NULL
}
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Create a pool."
)
},
{.
name
=
NULL
}
};
};
static
bool
static
bool
...
@@ -331,9 +342,13 @@ cmdPoolCreateAs(vshControl *ctl, const vshCmd *cmd)
...
@@ -331,9 +342,13 @@ cmdPoolCreateAs(vshControl *ctl, const vshCmd *cmd)
* "pool-define" command
* "pool-define" command
*/
*/
static
const
vshCmdInfo
info_pool_define
[]
=
{
static
const
vshCmdInfo
info_pool_define
[]
=
{
{
"help"
,
N_
(
"define (but don't start) a pool from an XML file"
)},
{.
name
=
"help"
,
{
"desc"
,
N_
(
"Define a pool."
)},
.
data
=
N_
(
"define (but don't start) a pool from an XML file"
)
{
NULL
,
NULL
}
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Define a pool."
)
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_pool_define
[]
=
{
static
const
vshCmdOptDef
opts_pool_define
[]
=
{
...
@@ -377,9 +392,13 @@ cmdPoolDefine(vshControl *ctl, const vshCmd *cmd)
...
@@ -377,9 +392,13 @@ cmdPoolDefine(vshControl *ctl, const vshCmd *cmd)
* "pool-define-as" command
* "pool-define-as" command
*/
*/
static
const
vshCmdInfo
info_pool_define_as
[]
=
{
static
const
vshCmdInfo
info_pool_define_as
[]
=
{
{
"help"
,
N_
(
"define a pool from a set of args"
)},
{.
name
=
"help"
,
{
"desc"
,
N_
(
"Define a pool."
)},
.
data
=
N_
(
"define a pool from a set of args"
)
{
NULL
,
NULL
}
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Define a pool."
)
},
{.
name
=
NULL
}
};
};
static
bool
static
bool
...
@@ -415,9 +434,13 @@ cmdPoolDefineAs(vshControl *ctl, const vshCmd *cmd)
...
@@ -415,9 +434,13 @@ cmdPoolDefineAs(vshControl *ctl, const vshCmd *cmd)
* "pool-build" command
* "pool-build" command
*/
*/
static
const
vshCmdInfo
info_pool_build
[]
=
{
static
const
vshCmdInfo
info_pool_build
[]
=
{
{
"help"
,
N_
(
"build a pool"
)},
{.
name
=
"help"
,
{
"desc"
,
N_
(
"Build a given pool."
)},
.
data
=
N_
(
"build a pool"
)
{
NULL
,
NULL
}
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Build a given pool."
)
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_pool_build
[]
=
{
static
const
vshCmdOptDef
opts_pool_build
[]
=
{
...
@@ -474,10 +497,13 @@ cmdPoolBuild(vshControl *ctl, const vshCmd *cmd)
...
@@ -474,10 +497,13 @@ cmdPoolBuild(vshControl *ctl, const vshCmd *cmd)
* "pool-destroy" command
* "pool-destroy" command
*/
*/
static
const
vshCmdInfo
info_pool_destroy
[]
=
{
static
const
vshCmdInfo
info_pool_destroy
[]
=
{
{
"help"
,
N_
(
"destroy (stop) a pool"
)},
{.
name
=
"help"
,
{
"desc"
,
.
data
=
N_
(
"destroy (stop) a pool"
)
N_
(
"Forcefully stop a given pool. Raw data in the pool is untouched"
)},
},
{
NULL
,
NULL
}
{.
name
=
"desc"
,
.
data
=
N_
(
"Forcefully stop a given pool. Raw data in the pool is untouched"
)
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_pool_destroy
[]
=
{
static
const
vshCmdOptDef
opts_pool_destroy
[]
=
{
...
@@ -514,9 +540,13 @@ cmdPoolDestroy(vshControl *ctl, const vshCmd *cmd)
...
@@ -514,9 +540,13 @@ cmdPoolDestroy(vshControl *ctl, const vshCmd *cmd)
* "pool-delete" command
* "pool-delete" command
*/
*/
static
const
vshCmdInfo
info_pool_delete
[]
=
{
static
const
vshCmdInfo
info_pool_delete
[]
=
{
{
"help"
,
N_
(
"delete a pool"
)},
{.
name
=
"help"
,
{
"desc"
,
N_
(
"Delete a given pool."
)},
.
data
=
N_
(
"delete a pool"
)
{
NULL
,
NULL
}
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Delete a given pool."
)
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_pool_delete
[]
=
{
static
const
vshCmdOptDef
opts_pool_delete
[]
=
{
...
@@ -553,9 +583,13 @@ cmdPoolDelete(vshControl *ctl, const vshCmd *cmd)
...
@@ -553,9 +583,13 @@ cmdPoolDelete(vshControl *ctl, const vshCmd *cmd)
* "pool-refresh" command
* "pool-refresh" command
*/
*/
static
const
vshCmdInfo
info_pool_refresh
[]
=
{
static
const
vshCmdInfo
info_pool_refresh
[]
=
{
{
"help"
,
N_
(
"refresh a pool"
)},
{.
name
=
"help"
,
{
"desc"
,
N_
(
"Refresh a given pool."
)},
.
data
=
N_
(
"refresh a pool"
)
{
NULL
,
NULL
}
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Refresh a given pool."
)
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_pool_refresh
[]
=
{
static
const
vshCmdOptDef
opts_pool_refresh
[]
=
{
...
@@ -592,9 +626,13 @@ cmdPoolRefresh(vshControl *ctl, const vshCmd *cmd)
...
@@ -592,9 +626,13 @@ cmdPoolRefresh(vshControl *ctl, const vshCmd *cmd)
* "pool-dumpxml" command
* "pool-dumpxml" command
*/
*/
static
const
vshCmdInfo
info_pool_dumpxml
[]
=
{
static
const
vshCmdInfo
info_pool_dumpxml
[]
=
{
{
"help"
,
N_
(
"pool information in XML"
)},
{.
name
=
"help"
,
{
"desc"
,
N_
(
"Output the pool information as an XML dump to stdout."
)},
.
data
=
N_
(
"pool information in XML"
)
{
NULL
,
NULL
}
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Output the pool information as an XML dump to stdout."
)
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_pool_dumpxml
[]
=
{
static
const
vshCmdOptDef
opts_pool_dumpxml
[]
=
{
...
@@ -866,9 +904,13 @@ cleanup:
...
@@ -866,9 +904,13 @@ cleanup:
* "pool-list" command
* "pool-list" command
*/
*/
static
const
vshCmdInfo
info_pool_list
[]
=
{
static
const
vshCmdInfo
info_pool_list
[]
=
{
{
"help"
,
N_
(
"list pools"
)},
{.
name
=
"help"
,
{
"desc"
,
N_
(
"Returns list of pools."
)},
.
data
=
N_
(
"list pools"
)
{
NULL
,
NULL
}
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Returns list of pools."
)
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_pool_list
[]
=
{
static
const
vshCmdOptDef
opts_pool_list
[]
=
{
...
@@ -1316,9 +1358,13 @@ cleanup:
...
@@ -1316,9 +1358,13 @@ cleanup:
* "find-storage-pool-sources-as" command
* "find-storage-pool-sources-as" command
*/
*/
static
const
vshCmdInfo
info_find_storage_pool_sources_as
[]
=
{
static
const
vshCmdInfo
info_find_storage_pool_sources_as
[]
=
{
{
"help"
,
N_
(
"find potential storage pool sources"
)},
{.
name
=
"help"
,
{
"desc"
,
N_
(
"Returns XML <sources> document."
)},
.
data
=
N_
(
"find potential storage pool sources"
)
{
NULL
,
NULL
}
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Returns XML <sources> document."
)
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_find_storage_pool_sources_as
[]
=
{
static
const
vshCmdOptDef
opts_find_storage_pool_sources_as
[]
=
{
...
@@ -1401,9 +1447,13 @@ cmdPoolDiscoverSourcesAs(vshControl * ctl, const vshCmd * cmd ATTRIBUTE_UNUSED)
...
@@ -1401,9 +1447,13 @@ cmdPoolDiscoverSourcesAs(vshControl * ctl, const vshCmd * cmd ATTRIBUTE_UNUSED)
* "find-storage-pool-sources" command
* "find-storage-pool-sources" command
*/
*/
static
const
vshCmdInfo
info_find_storage_pool_sources
[]
=
{
static
const
vshCmdInfo
info_find_storage_pool_sources
[]
=
{
{
"help"
,
N_
(
"discover potential storage pool sources"
)},
{.
name
=
"help"
,
{
"desc"
,
N_
(
"Returns XML <sources> document."
)},
.
data
=
N_
(
"discover potential storage pool sources"
)
{
NULL
,
NULL
}
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Returns XML <sources> document."
)
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_find_storage_pool_sources
[]
=
{
static
const
vshCmdOptDef
opts_find_storage_pool_sources
[]
=
{
...
@@ -1452,9 +1502,13 @@ cmdPoolDiscoverSources(vshControl * ctl, const vshCmd * cmd ATTRIBUTE_UNUSED)
...
@@ -1452,9 +1502,13 @@ cmdPoolDiscoverSources(vshControl * ctl, const vshCmd * cmd ATTRIBUTE_UNUSED)
* "pool-info" command
* "pool-info" command
*/
*/
static
const
vshCmdInfo
info_pool_info
[]
=
{
static
const
vshCmdInfo
info_pool_info
[]
=
{
{
"help"
,
N_
(
"storage pool information"
)},
{.
name
=
"help"
,
{
"desc"
,
N_
(
"Returns basic information about the storage pool."
)},
.
data
=
N_
(
"storage pool information"
)
{
NULL
,
NULL
}
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Returns basic information about the storage pool."
)
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_pool_info
[]
=
{
static
const
vshCmdOptDef
opts_pool_info
[]
=
{
...
@@ -1548,9 +1602,13 @@ cmdPoolInfo(vshControl *ctl, const vshCmd *cmd)
...
@@ -1548,9 +1602,13 @@ cmdPoolInfo(vshControl *ctl, const vshCmd *cmd)
* "pool-name" command
* "pool-name" command
*/
*/
static
const
vshCmdInfo
info_pool_name
[]
=
{
static
const
vshCmdInfo
info_pool_name
[]
=
{
{
"help"
,
N_
(
"convert a pool UUID to pool name"
)},
{.
name
=
"help"
,
{
"desc"
,
""
},
.
data
=
N_
(
"convert a pool UUID to pool name"
)
{
NULL
,
NULL
}
},
{.
name
=
"desc"
,
.
data
=
""
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_pool_name
[]
=
{
static
const
vshCmdOptDef
opts_pool_name
[]
=
{
...
@@ -1580,9 +1638,13 @@ cmdPoolName(vshControl *ctl, const vshCmd *cmd)
...
@@ -1580,9 +1638,13 @@ cmdPoolName(vshControl *ctl, const vshCmd *cmd)
* "pool-start" command
* "pool-start" command
*/
*/
static
const
vshCmdInfo
info_pool_start
[]
=
{
static
const
vshCmdInfo
info_pool_start
[]
=
{
{
"help"
,
N_
(
"start a (previously defined) inactive pool"
)},
{.
name
=
"help"
,
{
"desc"
,
N_
(
"Start a pool."
)},
.
data
=
N_
(
"start a (previously defined) inactive pool"
)
{
NULL
,
NULL
}
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Start a pool."
)
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_pool_start
[]
=
{
static
const
vshCmdOptDef
opts_pool_start
[]
=
{
...
@@ -1619,9 +1681,13 @@ cmdPoolStart(vshControl *ctl, const vshCmd *cmd)
...
@@ -1619,9 +1681,13 @@ cmdPoolStart(vshControl *ctl, const vshCmd *cmd)
* "pool-undefine" command
* "pool-undefine" command
*/
*/
static
const
vshCmdInfo
info_pool_undefine
[]
=
{
static
const
vshCmdInfo
info_pool_undefine
[]
=
{
{
"help"
,
N_
(
"undefine an inactive pool"
)},
{.
name
=
"help"
,
{
"desc"
,
N_
(
"Undefine the configuration for an inactive pool."
)},
.
data
=
N_
(
"undefine an inactive pool"
)
{
NULL
,
NULL
}
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Undefine the configuration for an inactive pool."
)
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_pool_undefine
[]
=
{
static
const
vshCmdOptDef
opts_pool_undefine
[]
=
{
...
@@ -1658,9 +1724,13 @@ cmdPoolUndefine(vshControl *ctl, const vshCmd *cmd)
...
@@ -1658,9 +1724,13 @@ cmdPoolUndefine(vshControl *ctl, const vshCmd *cmd)
* "pool-uuid" command
* "pool-uuid" command
*/
*/
static
const
vshCmdInfo
info_pool_uuid
[]
=
{
static
const
vshCmdInfo
info_pool_uuid
[]
=
{
{
"help"
,
N_
(
"convert a pool name to pool UUID"
)},
{.
name
=
"help"
,
{
"desc"
,
""
},
.
data
=
N_
(
"convert a pool name to pool UUID"
)
{
NULL
,
NULL
}
},
{.
name
=
"desc"
,
.
data
=
""
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_pool_uuid
[]
=
{
static
const
vshCmdOptDef
opts_pool_uuid
[]
=
{
...
@@ -1695,9 +1765,13 @@ cmdPoolUuid(vshControl *ctl, const vshCmd *cmd)
...
@@ -1695,9 +1765,13 @@ cmdPoolUuid(vshControl *ctl, const vshCmd *cmd)
* "pool-edit" command
* "pool-edit" command
*/
*/
static
const
vshCmdInfo
info_pool_edit
[]
=
{
static
const
vshCmdInfo
info_pool_edit
[]
=
{
{
"help"
,
N_
(
"edit XML configuration for a storage pool"
)},
{.
name
=
"help"
,
{
"desc"
,
N_
(
"Edit the XML configuration for a storage pool."
)},
.
data
=
N_
(
"edit XML configuration for a storage pool"
)
{
NULL
,
NULL
}
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Edit the XML configuration for a storage pool."
)
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_pool_edit
[]
=
{
static
const
vshCmdOptDef
opts_pool_edit
[]
=
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录