Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
48e85b5c
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,发现更多精彩内容 >>
提交
48e85b5c
编写于
4月 04, 2006
作者:
K
Karel Zak
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
virsh command names cleanup
上级
f7e40ae8
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
31 addition
and
26 deletion
+31
-26
ChangeLog
ChangeLog
+5
-0
src/virsh.c
src/virsh.c
+26
-26
未找到文件。
ChangeLog
浏览文件 @
48e85b5c
Tue Apr 4 22:49:33 CEST 2006 Karel Zak <kzak@redhat.com>
* src/virsh.c: rename dstate, idof and nameof to domstate,
domname and domid
Tue Apr 4 12:41:53 CEST 2006 Karel Zak <kzak@redhat.com>
* src/virsh.c: add new command "nodeinfo"
...
...
src/virsh.c
浏览文件 @
48e85b5c
...
...
@@ -344,22 +344,22 @@ cmdList(vshControl * ctl, vshCmd * cmd ATTRIBUTE_UNUSED)
}
/*
* "dstate" command
* "d
om
state" command
*/
static
vshCmdInfo
info_dstate
[]
=
{
{
"syntax"
,
"dstate <domain>"
},
static
vshCmdInfo
info_d
om
state
[]
=
{
{
"syntax"
,
"d
om
state <domain>"
},
{
"help"
,
"domain state"
},
{
"desc"
,
"Returns state about a running domain."
},
{
NULL
,
NULL
}
};
static
vshCmdOptDef
opts_dstate
[]
=
{
static
vshCmdOptDef
opts_d
om
state
[]
=
{
{
"domain"
,
VSH_OT_DATA
,
VSH_OFLAG_REQ
,
"domain name or id"
},
{
NULL
,
0
,
0
,
NULL
}
};
static
int
cmdDstate
(
vshControl
*
ctl
,
vshCmd
*
cmd
)
cmdD
om
state
(
vshControl
*
ctl
,
vshCmd
*
cmd
)
{
virDomainInfo
info
;
virDomainPtr
dom
;
...
...
@@ -852,21 +852,21 @@ cmdDumpXML(vshControl * ctl, vshCmd * cmd)
}
/*
* "
nameof
" command
* "
domname
" command
*/
static
vshCmdInfo
info_
nameof
[]
=
{
{
"syntax"
,
"
nameof
<id>"
},
static
vshCmdInfo
info_
domname
[]
=
{
{
"syntax"
,
"
domname
<id>"
},
{
"help"
,
"convert a domain Id to domain name"
},
{
NULL
,
NULL
}
};
static
vshCmdOptDef
opts_
nameof
[]
=
{
static
vshCmdOptDef
opts_
domname
[]
=
{
{
"id"
,
VSH_OT_DATA
,
VSH_OFLAG_REQ
,
"domain Id"
},
{
NULL
,
0
,
0
,
NULL
}
};
static
int
cmd
Nameof
(
vshControl
*
ctl
,
vshCmd
*
cmd
)
cmd
Domname
(
vshControl
*
ctl
,
vshCmd
*
cmd
)
{
int
found
;
int
id
=
vshCommandOptInt
(
cmd
,
"id"
,
&
found
);
...
...
@@ -889,21 +889,21 @@ cmdNameof(vshControl * ctl, vshCmd * cmd)
}
/*
* "
idof
" command
* "
domid
" command
*/
static
vshCmdInfo
info_
idof
[]
=
{
{
"syntax"
,
"
idof
<name>"
},
static
vshCmdInfo
info_
domid
[]
=
{
{
"syntax"
,
"
domid
<name>"
},
{
"help"
,
"convert a domain name to domain Id"
},
{
NULL
,
NULL
}
};
static
vshCmdOptDef
opts_
idof
[]
=
{
static
vshCmdOptDef
opts_
domid
[]
=
{
{
"name"
,
VSH_OT_DATA
,
VSH_OFLAG_REQ
,
"domain name"
},
{
NULL
,
0
,
0
,
NULL
}
};
static
int
cmd
Idof
(
vshControl
*
ctl
,
vshCmd
*
cmd
)
cmd
Domid
(
vshControl
*
ctl
,
vshCmd
*
cmd
)
{
char
*
name
=
vshCommandOptString
(
cmd
,
"name"
,
NULL
);
virDomainPtr
dom
;
...
...
@@ -1026,23 +1026,23 @@ cmdQuit(vshControl * ctl, vshCmd * cmd ATTRIBUTE_UNUSED)
static
vshCmdDef
commands
[]
=
{
{
"connect"
,
cmdConnect
,
opts_connect
,
info_connect
},
{
"create"
,
cmdCreate
,
opts_create
,
info_create
},
{
"destroy"
,
cmdDestroy
,
opts_destroy
,
info_destroy
},
{
"domid"
,
cmdDomid
,
opts_domid
,
info_domid
},
{
"dominfo"
,
cmdDominfo
,
opts_dominfo
,
info_dominfo
},
{
"nodeinfo"
,
cmdNodeinfo
,
NULL
,
info_nodeinfo
},
{
"domname"
,
cmdDomname
,
opts_domname
,
info_domname
},
{
"domstate"
,
cmdDomstate
,
opts_domstate
,
info_domstate
},
{
"dumpxml"
,
cmdDumpXML
,
opts_dumpxml
,
info_dumpxml
},
{
"dstate"
,
cmdDstate
,
opts_dstate
,
info_dstate
},
{
"suspend"
,
cmdSuspend
,
opts_suspend
,
info_suspend
},
{
"help"
,
cmdHelp
,
opts_help
,
info_help
},
{
"list"
,
cmdList
,
NULL
,
info_list
},
{
"nodeinfo"
,
cmdNodeinfo
,
NULL
,
info_nodeinfo
},
{
"quit"
,
cmdQuit
,
NULL
,
info_quit
},
{
"reboot"
,
cmdReboot
,
opts_reboot
,
info_reboot
},
{
"restore"
,
cmdRestore
,
opts_restore
,
info_restore
},
{
"resume"
,
cmdResume
,
opts_resume
,
info_resume
},
{
"save"
,
cmdSave
,
opts_save
,
info_save
},
{
"restore"
,
cmdRestore
,
opts_restore
,
info_restore
},
{
"shutdown"
,
cmdShutdown
,
opts_shutdown
,
info_shutdown
},
{
"reboot"
,
cmdReboot
,
opts_reboot
,
info_reboot
},
{
"destroy"
,
cmdDestroy
,
opts_destroy
,
info_destroy
},
{
"help"
,
cmdHelp
,
opts_help
,
info_help
},
{
"idof"
,
cmdIdof
,
opts_idof
,
info_idof
},
{
"list"
,
cmdList
,
NULL
,
info_list
},
{
"nameof"
,
cmdNameof
,
opts_nameof
,
info_nameof
},
{
"suspend"
,
cmdSuspend
,
opts_suspend
,
info_suspend
},
{
"version"
,
cmdVersion
,
NULL
,
info_version
},
{
"quit"
,
cmdQuit
,
NULL
,
info_quit
},
{
NULL
,
NULL
,
NULL
,
NULL
}
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录