2009-06-06 23:42:17 +00:00
|
|
|
HXCOMM Use DEFHEADING() to define headings in both help text and texi
|
|
|
|
HXCOMM Text between STEXI and ETEXI are copied to texi version and
|
|
|
|
HXCOMM discarded from C version
|
|
|
|
HXCOMM DEF(command, callback, arg_string) is used to construct
|
|
|
|
HXCOMM command structures and help message.
|
|
|
|
HXCOMM HXCOMM can be used for comments, discarded from both texi and C
|
|
|
|
|
|
|
|
STEXI
|
|
|
|
@table @option
|
2010-05-20 07:16:30 +00:00
|
|
|
ETEXI
|
2009-06-06 23:42:17 +00:00
|
|
|
|
|
|
|
DEF("check", img_check,
|
2012-05-11 14:07:02 +00:00
|
|
|
"check [-f fmt] [-r [leaks | all]] filename")
|
2009-06-06 23:42:17 +00:00
|
|
|
STEXI
|
2012-05-11 14:07:02 +00:00
|
|
|
@item check [-f @var{fmt}] [-r [leaks | all]] @var{filename}
|
2009-06-06 23:42:17 +00:00
|
|
|
ETEXI
|
|
|
|
|
|
|
|
DEF("create", img_create,
|
2009-10-28 11:49:16 +00:00
|
|
|
"create [-f fmt] [-o options] filename [size]")
|
2009-06-06 23:42:17 +00:00
|
|
|
STEXI
|
2009-10-28 11:49:16 +00:00
|
|
|
@item create [-f @var{fmt}] [-o @var{options}] @var{filename} [@var{size}]
|
2009-06-06 23:42:17 +00:00
|
|
|
ETEXI
|
|
|
|
|
|
|
|
DEF("commit", img_commit,
|
2011-06-20 16:48:19 +00:00
|
|
|
"commit [-f fmt] [-t cache] filename")
|
2009-06-06 23:42:17 +00:00
|
|
|
STEXI
|
2011-12-07 12:57:13 +00:00
|
|
|
@item commit [-f @var{fmt}] [-t @var{cache}] @var{filename}
|
2009-06-06 23:42:17 +00:00
|
|
|
ETEXI
|
|
|
|
|
|
|
|
DEF("convert", img_convert,
|
2011-08-26 13:27:13 +00:00
|
|
|
"convert [-c] [-p] [-f fmt] [-t cache] [-O output_fmt] [-o options] [-s snapshot_name] [-S sparse_size] filename [filename2 [...]] output_filename")
|
2009-06-06 23:42:17 +00:00
|
|
|
STEXI
|
2011-12-07 12:57:13 +00:00
|
|
|
@item convert [-c] [-p] [-f @var{fmt}] [-t @var{cache}] [-O @var{output_fmt}] [-o @var{options}] [-s @var{snapshot_name}] [-S @var{sparse_size}] @var{filename} [@var{filename2} [...]] @var{output_filename}
|
2009-06-06 23:42:17 +00:00
|
|
|
ETEXI
|
|
|
|
|
|
|
|
DEF("info", img_info,
|
qemu-img: Add json output option to the info command.
This option --output=[human|json] make qemu-img info output on
human or JSON representation at the choice of the user.
example:
{
"snapshots": [
{
"vm-clock-nsec": 637102488,
"name": "vm-20120821145509",
"date-sec": 1345553709,
"date-nsec": 220289000,
"vm-clock-sec": 20,
"id": "1",
"vm-state-size": 96522745
},
{
"vm-clock-nsec": 28210866,
"name": "vm-20120821154059",
"date-sec": 1345556459,
"date-nsec": 171392000,
"vm-clock-sec": 46,
"id": "2",
"vm-state-size": 101208714
}
],
"virtual-size": 1073741824,
"filename": "snap.qcow2",
"cluster-size": 65536,
"format": "qcow2",
"actual-size": 985587712,
"dirty-flag": false
}
Signed-off-by: Benoit Canet <benoit@irqsave.net>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2012-09-05 11:09:02 +00:00
|
|
|
"info [-f fmt] [--output=ofmt] filename")
|
2009-06-06 23:42:17 +00:00
|
|
|
STEXI
|
qemu-img: Add json output option to the info command.
This option --output=[human|json] make qemu-img info output on
human or JSON representation at the choice of the user.
example:
{
"snapshots": [
{
"vm-clock-nsec": 637102488,
"name": "vm-20120821145509",
"date-sec": 1345553709,
"date-nsec": 220289000,
"vm-clock-sec": 20,
"id": "1",
"vm-state-size": 96522745
},
{
"vm-clock-nsec": 28210866,
"name": "vm-20120821154059",
"date-sec": 1345556459,
"date-nsec": 171392000,
"vm-clock-sec": 46,
"id": "2",
"vm-state-size": 101208714
}
],
"virtual-size": 1073741824,
"filename": "snap.qcow2",
"cluster-size": 65536,
"format": "qcow2",
"actual-size": 985587712,
"dirty-flag": false
}
Signed-off-by: Benoit Canet <benoit@irqsave.net>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2012-09-05 11:09:02 +00:00
|
|
|
@item info [-f @var{fmt}] [--output=@var{ofmt}] @var{filename}
|
2009-06-06 23:42:17 +00:00
|
|
|
ETEXI
|
|
|
|
|
|
|
|
DEF("snapshot", img_snapshot,
|
|
|
|
"snapshot [-l | -a snapshot | -c snapshot | -d snapshot] filename")
|
|
|
|
STEXI
|
|
|
|
@item snapshot [-l | -a @var{snapshot} | -c @var{snapshot} | -d @var{snapshot}] @var{filename}
|
2010-01-12 11:55:18 +00:00
|
|
|
ETEXI
|
|
|
|
|
|
|
|
DEF("rebase", img_rebase,
|
2011-06-20 16:48:19 +00:00
|
|
|
"rebase [-f fmt] [-t cache] [-p] [-u] -b backing_file [-F backing_fmt] filename")
|
2010-01-12 11:55:18 +00:00
|
|
|
STEXI
|
2011-12-07 12:57:13 +00:00
|
|
|
@item rebase [-f @var{fmt}] [-t @var{cache}] [-p] [-u] -b @var{backing_file} [-F @var{backing_fmt}] @var{filename}
|
2010-04-24 08:12:12 +00:00
|
|
|
ETEXI
|
|
|
|
|
|
|
|
DEF("resize", img_resize,
|
|
|
|
"resize filename [+ | -]size")
|
|
|
|
STEXI
|
2010-07-09 18:30:07 +00:00
|
|
|
@item resize @var{filename} [+ | -]@var{size}
|
2009-06-06 23:42:17 +00:00
|
|
|
@end table
|
|
|
|
ETEXI
|