Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
54383726
Q
qemu
项目概览
openeuler
/
qemu
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Q
qemu
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
54383726
编写于
1月 16, 2012
作者:
M
Michael Roth
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
qemu-ga: Add schema documentation for types
Document guest agent schema types in similar fashion to qmp schema types.
上级
235fe3bf
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
97 addition
and
21 deletion
+97
-21
qapi-schema-guest.json
qapi-schema-guest.json
+97
-21
未找到文件。
qapi-schema-guest.json
浏览文件 @
54383726
...
...
@@ -37,17 +37,42 @@
{
'command':
'guest-ping'
}
##
#
@
guest-i
nfo:
#
@
GuestAgentCommandI
nfo:
#
#
Get
some
information
about
the
guest
agent
.
#
Information
about
guest
agent
commands
.
#
#
Since:
0.15
.
0
#
@name:
name
of
the
command
#
#
@enabled:
whether
command
is
currently
enabled
by
guest
admin
#
#
Since
1.1
.
0
##
{
'type':
'GuestAgentCommandInfo'
,
'data':
{
'name':
'str'
,
'enabled':
'bool'
}
}
##
#
@GuestAgentInfo
#
#
Information
about
guest
agent.
#
#
@version:
guest
agent
version
#
#
@supported_commands:
Information
about
guest
agent
commands
#
#
Since
0.15
.
0
##
{
'type':
'GuestAgentInfo'
,
'data':
{
'version':
'str'
,
'supported_commands':
[
'GuestAgentCommandInfo'
]
}
}
##
#
@guest-info:
#
#
Get
some
information
about
the
guest
agent.
#
#
Returns:
@GuestAgentInfo
#
#
Since:
0.15
.
0
##
{
'command':
'guest-info'
,
'returns':
'GuestAgentInfo'
}
...
...
@@ -97,6 +122,23 @@
{
'command':
'guest-file-close'
,
'data':
{
'handle':
'int'
}
}
##
#
@GuestFileRead
#
#
Result
of
guest
agent
file-read
operation
#
#
@count:
number
of
bytes
read
(note:
count
is
*before*
#
base
64
-encoding
is
applied)
#
#
@buf-b
64
:
base
64
-encoded
bytes
read
#
#
@eof:
whether
EOF
was
encountered
during
read
operation.
#
#
Since:
0.15
.
0
##
{
'type':
'GuestFileRead'
,
'data':
{
'count':
'int'
,
'buf-b
64
':
'str'
,
'eof':
'bool'
}
}
##
#
@guest-file-read:
#
...
...
@@ -106,18 +148,29 @@
#
#
@count:
#optional
maximum
number
of
bytes
to
read
(default
is
4
KB)
#
#
Returns:
GuestFileRead
on
success.
Note:
count
is
number
of
bytes
read
#
*before*
base
64
encoding
bytes
read.
#
Returns:
@GuestFileRead
on
success.
#
#
Since:
0.15
.
0
##
{
'type':
'GuestFileRead'
,
'data':
{
'count':
'int'
,
'buf-b
64
':
'str'
,
'eof':
'bool'
}
}
{
'command':
'guest-file-read'
,
'data':
{
'handle':
'int'
,
'*count':
'int'
},
'returns':
'GuestFileRead'
}
##
#
@GuestFileWrite
#
#
Result
of
guest
agent
file-write
operation
#
#
@count:
number
of
bytes
written
(note:
count
is
actual
bytes
#
written,
after
base
64
-decoding
of
provided
buffer)
#
#
@eof:
whether
EOF
was
encountered
during
write
operation.
#
#
Since:
0.15
.
0
##
{
'type':
'GuestFileWrite'
,
'data':
{
'count':
'int'
,
'eof':
'bool'
}
}
##
#
@guest-file-write:
#
...
...
@@ -130,17 +183,29 @@
#
@count:
#optional
bytes
to
write
(actual
bytes,
after
base
64
-decode),
#
default
is
all
content
in
buf-b
64
buffer
after
base
64
decoding
#
#
Returns:
GuestFileWrite
on
success.
Note:
count
is
the
number
of
bytes
#
base
64
-decoded
bytes
written
#
Returns:
@GuestFileWrite
on
success.
#
#
Since:
0.15
.
0
##
{
'type':
'GuestFileWrite'
,
'data':
{
'count':
'int'
,
'eof':
'bool'
}
}
{
'command':
'guest-file-write'
,
'data':
{
'handle':
'int'
,
'buf-b
64
':
'str'
,
'*count':
'int'
},
'returns':
'GuestFileWrite'
}
##
#
@GuestFileSeek
#
#
Result
of
guest
agent
file-seek
operation
#
#
@position:
current
file
position
#
#
@eof:
whether
EOF
was
encountered
during
file
seek
#
#
Since:
0.15
.
0
##
{
'type':
'GuestFileSeek'
,
'data':
{
'position':
'int'
,
'eof':
'bool'
}
}
##
#
@guest-file-seek:
#
...
...
@@ -154,13 +219,10 @@
#
#
@whence:
SEEK_SET,
SEEK_CUR,
or
SEEK_END,
as
with
fseek()
#
#
Returns:
GuestFileSeek
on
success.
#
Returns:
@
GuestFileSeek
on
success.
#
#
Since:
0.15
.
0
##
{
'type':
'GuestFileSeek'
,
'data':
{
'position':
'int'
,
'eof':
'bool'
}
}
{
'command':
'guest-file-seek'
,
'data':
{
'handle':
'int'
,
'offset':
'int'
,
'whence':
'int'
},
'returns':
'GuestFileSeek'
}
...
...
@@ -180,18 +242,32 @@
'data':
{
'handle':
'int'
}
}
##
#
@
guest-fsfreeze-status:
#
@
GuestFsFreezeStatus
#
#
Get
guest
fsfreeze
state.
error
state
indicates
failure
to
thaw
1
or
more
#
previously
frozen
filesystems,
or
failure
to
open
a
previously
cached
#
filesytem
(filesystem
unmounted/directory
changes,
etc).
#
An
enumation
of
filesystem
freeze
states
#
#
Returns:
GuestFsfreezeStatus
(
"thawed"
,
"frozen"
,
etc.,
as
defined
below)
#
@thawed:
filesystems
thawed/unfrozen
#
#
@frozen:
all
non-network
guest
filesystems
frozen
#
#
@error:
failure
to
thaw
1
or
more
#
previously
frozen
filesystems,
or
failure
to
open
a
previously
#
cached
filesytem
(filesystem
unmounted/directory
changes,
etc).
#
#
Since:
0.15
.
0
##
{
'enum':
'GuestFsfreezeStatus'
,
'data':
[
'thawed'
,
'frozen'
,
'error'
]
}
##
#
@guest-fsfreeze-status:
#
#
Get
guest
fsfreeze
state.
error
state
indicates
#
#
Returns:
GuestFsfreezeStatus
(
"thawed"
,
"frozen"
,
etc.,
as
defined
below)
#
#
Since:
0.15
.
0
##
{
'command':
'guest-fsfreeze-status'
,
'returns':
'GuestFsfreezeStatus'
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录