提交 5c9454aa 编写于 作者: R Richard W.M. Jones

Display autostart status in virsh dominfo command.

	* src/virsh.c: Display autostart status in virsh dominfo
	command (Shigeki Sakamoto).
上级 e083fc78
Tue May 27 10:40:00 BST 2008 Richard W.M. Jones <rjones@redhat.com>
Display autostart status in virsh dominfo command.
* src/virsh.c: Display autostart status in virsh dominfo
command (Shigeki Sakamoto).
Tue May 27 09:54:00 BST 2008 Richard W.M. Jones <rjones@redhat.com> Tue May 27 09:54:00 BST 2008 Richard W.M. Jones <rjones@redhat.com>
Fix use of header files in disk storage backend. Fix use of header files in disk storage backend.
......
...@@ -1492,7 +1492,7 @@ cmdDominfo(vshControl * ctl, vshCmd * cmd) ...@@ -1492,7 +1492,7 @@ cmdDominfo(vshControl * ctl, vshCmd * cmd)
{ {
virDomainInfo info; virDomainInfo info;
virDomainPtr dom; virDomainPtr dom;
int ret = TRUE; int ret = TRUE, autostart;
unsigned int id; unsigned int id;
char *str, uuid[VIR_UUID_STRING_BUFLEN]; char *str, uuid[VIR_UUID_STRING_BUFLEN];
...@@ -1545,6 +1545,11 @@ cmdDominfo(vshControl * ctl, vshCmd * cmd) ...@@ -1545,6 +1545,11 @@ cmdDominfo(vshControl * ctl, vshCmd * cmd)
ret = FALSE; ret = FALSE;
} }
if (!virDomainGetAutostart(dom, &autostart)) {
vshPrint(ctl, "%-15s %-15s\n", _("Autostart:"),
autostart ? _("enable") : _("disable") );
}
virDomainFree(dom); virDomainFree(dom);
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册