Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
f036f386
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,发现更多精彩内容 >>
提交
f036f386
编写于
2月 07, 2013
作者:
M
Michal Privoznik
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
virsh-nodedev.c: Switch to c99 initialization of vshCmdInfo
上级
a8236b06
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
53 addition
and
25 deletion
+53
-25
tools/virsh-nodedev.c
tools/virsh-nodedev.c
+53
-25
未找到文件。
tools/virsh-nodedev.c
浏览文件 @
f036f386
...
...
@@ -42,12 +42,16 @@
* "nodedev-create" command
*/
static
const
vshCmdInfo
info_node_device_create
[]
=
{
{
"help"
,
N_
(
"create a device defined "
"by an XML file on the node"
)},
{
"desc"
,
N_
(
"Create a device on the node. Note that this "
"command creates devices on the physical host "
"that can then be assigned to a virtual machine."
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"create a device defined "
"by an XML file on the node"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Create a device on the node. Note that this "
"command creates devices on the physical host "
"that can then be assigned to a virtual machine."
)
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_node_device_create
[]
=
{
...
...
@@ -93,10 +97,14 @@ cmdNodeDeviceCreate(vshControl *ctl, const vshCmd *cmd)
* "nodedev-destroy" command
*/
static
const
vshCmdInfo
info_node_device_destroy
[]
=
{
{
"help"
,
N_
(
"destroy (stop) a device on the node"
)},
{
"desc"
,
N_
(
"Destroy a device on the node. Note that this "
"command destroys devices on the physical host"
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"destroy (stop) a device on the node"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Destroy a device on the node. Note that this "
"command destroys devices on the physical host"
)
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_node_device_destroy
[]
=
{
...
...
@@ -361,9 +369,13 @@ cleanup:
* "nodedev-list" command
*/
static
const
vshCmdInfo
info_node_list_devices
[]
=
{
{
"help"
,
N_
(
"enumerate devices on this host"
)},
{
"desc"
,
""
},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"enumerate devices on this host"
)
},
{.
name
=
"desc"
,
.
data
=
""
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_node_list_devices
[]
=
{
...
...
@@ -497,9 +509,13 @@ cleanup:
* "nodedev-dumpxml" command
*/
static
const
vshCmdInfo
info_node_device_dumpxml
[]
=
{
{
"help"
,
N_
(
"node device details in XML"
)},
{
"desc"
,
N_
(
"Output the node device details as an XML dump to stdout."
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"node device details in XML"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Output the node device details as an XML dump to stdout."
)
},
{.
name
=
NULL
}
};
...
...
@@ -565,9 +581,13 @@ cleanup:
* "nodedev-detach" command
*/
static
const
vshCmdInfo
info_node_device_detach
[]
=
{
{
"help"
,
N_
(
"detach node device from its device driver"
)},
{
"desc"
,
N_
(
"Detach node device from its device driver before assigning to a domain."
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"detach node device from its device driver"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Detach node device from its device driver before assigning to a domain."
)
},
{.
name
=
NULL
}
};
...
...
@@ -612,9 +632,13 @@ cmdNodeDeviceDetach(vshControl *ctl, const vshCmd *cmd)
* "nodedev-reattach" command
*/
static
const
vshCmdInfo
info_node_device_reattach
[]
=
{
{
"help"
,
N_
(
"reattach node device to its device driver"
)},
{
"desc"
,
N_
(
"Reattach node device to its device driver once released by the domain."
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"reattach node device to its device driver"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Reattach node device to its device driver once released by the domain."
)
},
{.
name
=
NULL
}
};
...
...
@@ -657,9 +681,13 @@ cmdNodeDeviceReAttach(vshControl *ctl, const vshCmd *cmd)
* "nodedev-reset" command
*/
static
const
vshCmdInfo
info_node_device_reset
[]
=
{
{
"help"
,
N_
(
"reset node device"
)},
{
"desc"
,
N_
(
"Reset node device before or after assigning to a domain."
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"reset node device"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Reset node device before or after assigning to a domain."
)
},
{.
name
=
NULL
}
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录