blob: c9c54de1df40c37791e9c183ebcb683bbd427a5a [file] [log] [blame]
Eric Blake57b2d9d2017-08-03 11:33:50 -05001HXCOMM Keep the list of subcommands sorted by name.
Stuart Brady153859b2009-06-07 00:42:17 +01002HXCOMM Use DEFHEADING() to define headings in both help text and texi
Peter Maydell96ddefb2020-01-24 16:26:04 +00003HXCOMM Text between SRST and ERST are copied to rST version and
Stuart Brady153859b2009-06-07 00:42:17 +01004HXCOMM discarded from C version
5HXCOMM DEF(command, callback, arg_string) is used to construct
6HXCOMM command structures and help message.
Peter Maydell96ddefb2020-01-24 16:26:04 +00007HXCOMM HXCOMM can be used for comments, discarded from both rST and C
Stuart Brady153859b2009-06-07 00:42:17 +01008
Peter Maydell96ddefb2020-01-24 16:26:04 +00009HXCOMM When amending the rST sections, please remember to copy the usage
John Snow4885b0c2018-05-03 18:56:48 -040010HXCOMM over to the per-command sections in qemu-img.texi.
11
Eric Blake57b2d9d2017-08-03 11:33:50 -050012DEF("amend", img_amend,
13 "amend [--object objectdef] [--image-opts] [-p] [-q] [-f fmt] [-t cache] -o options filename")
Peter Maydell195b5102020-01-24 16:26:02 +000014SRST
15.. option:: amend [--object OBJECTDEF] [--image-opts] [-p] [-q] [-f FMT] [-t CACHE] -o OPTIONS FILENAME
16ERST
Eric Blake57b2d9d2017-08-03 11:33:50 -050017
Kevin Wolfb6133b82014-08-05 14:17:13 +020018DEF("bench", img_bench,
Julia Suvorova890fb1f2020-02-05 17:30:08 +010019 "bench [-c count] [-d depth] [-f fmt] [--flush-interval=flush_interval] [-i aio] [-n] [--no-drain] [-o offset] [--pattern=pattern] [-q] [-s buffer_size] [-S step_size] [-t cache] [-w] [-U] filename")
Peter Maydell195b5102020-01-24 16:26:02 +000020SRST
Julia Suvorova890fb1f2020-02-05 17:30:08 +010021.. option:: bench [-c COUNT] [-d DEPTH] [-f FMT] [--flush-interval=FLUSH_INTERVAL] [-i AIO] [-n] [--no-drain] [-o OFFSET] [--pattern=PATTERN] [-q] [-s BUFFER_SIZE] [-S STEP_SIZE] [-t CACHE] [-w] [-U] FILENAME
Peter Maydell195b5102020-01-24 16:26:02 +000022ERST
Stuart Brady153859b2009-06-07 00:42:17 +010023DEF("check", img_check,
John Snow65f389c2018-05-03 18:56:44 -040024 "check [--object objectdef] [--image-opts] [-q] [-f fmt] [--output=ofmt] [-r [leaks | all]] [-T src_cache] [-U] filename")
Peter Maydell195b5102020-01-24 16:26:02 +000025SRST
26.. option:: check [--object OBJECTDEF] [--image-opts] [-q] [-f FMT] [--output=OFMT] [-r [leaks | all]] [-T SRC_CACHE] [-U] FILENAME
27ERST
Stuart Brady153859b2009-06-07 00:42:17 +010028
Stuart Brady153859b2009-06-07 00:42:17 +010029DEF("commit", img_commit,
John Snow65f389c2018-05-03 18:56:44 -040030 "commit [--object objectdef] [--image-opts] [-q] [-f fmt] [-t cache] [-b base] [-d] [-p] filename")
Peter Maydell195b5102020-01-24 16:26:02 +000031SRST
32.. option:: commit [--object OBJECTDEF] [--image-opts] [-q] [-f FMT] [-t CACHE] [-b BASE] [-d] [-p] FILENAME
33ERST
Stuart Brady153859b2009-06-07 00:42:17 +010034
Miroslav Rezaninad14ed182013-02-13 09:09:41 +010035DEF("compare", img_compare,
Fam Zhenga8d16f92017-05-03 00:35:40 +080036 "compare [--object objectdef] [--image-opts] [-f fmt] [-F fmt] [-T src_cache] [-p] [-q] [-s] [-U] filename1 filename2")
Peter Maydell195b5102020-01-24 16:26:02 +000037SRST
38.. option:: compare [--object OBJECTDEF] [--image-opts] [-f FMT] [-F FMT] [-T SRC_CACHE] [-p] [-q] [-s] [-U] FILENAME1 FILENAME2
39ERST
Miroslav Rezaninad14ed182013-02-13 09:09:41 +010040
Stuart Brady153859b2009-06-07 00:42:17 +010041DEF("convert", img_convert,
David Edmondson168468f2020-02-05 11:02:48 +000042 "convert [--object objectdef] [--image-opts] [--target-image-opts] [--target-is-zero] [-U] [-C] [-c] [-p] [-q] [-n] [-f fmt] [-t cache] [-T src_cache] [-O output_fmt] [-B backing_file] [-o options] [-l snapshot_param] [-S sparse_size] [-m num_coroutines] [-W] [--salvage] filename [filename2 [...]] output_filename")
Peter Maydell195b5102020-01-24 16:26:02 +000043SRST
David Edmondson168468f2020-02-05 11:02:48 +000044.. option:: convert [--object OBJECTDEF] [--image-opts] [--target-image-opts] [--target-is-zero] [-U] [-C] [-c] [-p] [-q] [-n] [-f FMT] [-t CACHE] [-T SRC_CACHE] [-O OUTPUT_FMT] [-B BACKING_FILE] [-o OPTIONS] [-l SNAPSHOT_PARAM] [-S SPARSE_SIZE] [-m NUM_COROUTINES] [-W] [--salvage] FILENAME [FILENAME2 [...]] OUTPUT_FILENAME
Peter Maydell195b5102020-01-24 16:26:02 +000045ERST
Stuart Brady153859b2009-06-07 00:42:17 +010046
Eric Blake57b2d9d2017-08-03 11:33:50 -050047DEF("create", img_create,
John Snow65f389c2018-05-03 18:56:44 -040048 "create [--object objectdef] [-q] [-f fmt] [-b backing_file] [-F backing_fmt] [-u] [-o options] filename [size]")
Peter Maydell195b5102020-01-24 16:26:02 +000049SRST
50.. option:: create [--object OBJECTDEF] [-q] [-f FMT] [-b BACKING_FILE] [-F BACKING_FMT] [-u] [-o OPTIONS] FILENAME [SIZE]
51ERST
Eric Blake57b2d9d2017-08-03 11:33:50 -050052
Reda Sallahi86ce1f62016-08-10 04:43:12 +020053DEF("dd", img_dd,
Fam Zhenga8d16f92017-05-03 00:35:40 +080054 "dd [--image-opts] [-U] [-f fmt] [-O output_fmt] [bs=block_size] [count=blocks] [skip=blocks] if=input of=output")
Peter Maydell195b5102020-01-24 16:26:02 +000055SRST
56.. option:: dd [--image-opts] [-U] [-f FMT] [-O OUTPUT_FMT] [bs=BLOCK_SIZE] [count=BLOCKS] [skip=BLOCKS] if=INPUT of=OUTPUT
57ERST
Reda Sallahi86ce1f62016-08-10 04:43:12 +020058
Stuart Brady153859b2009-06-07 00:42:17 +010059DEF("info", img_info,
Fam Zhenga8d16f92017-05-03 00:35:40 +080060 "info [--object objectdef] [--image-opts] [-f fmt] [--output=ofmt] [--backing-chain] [-U] filename")
Peter Maydell195b5102020-01-24 16:26:02 +000061SRST
62.. option:: info [--object OBJECTDEF] [--image-opts] [-f FMT] [--output=OFMT] [--backing-chain] [-U] FILENAME
63ERST
Stuart Brady153859b2009-06-07 00:42:17 +010064
Paolo Bonzini4c93a13b2013-09-04 19:00:33 +020065DEF("map", img_map,
Fam Zhenga8d16f92017-05-03 00:35:40 +080066 "map [--object objectdef] [--image-opts] [-f fmt] [--output=ofmt] [-U] filename")
Peter Maydell195b5102020-01-24 16:26:02 +000067SRST
68.. option:: map [--object OBJECTDEF] [--image-opts] [-f FMT] [--output=OFMT] [-U] FILENAME
69ERST
Paolo Bonzini4c93a13b2013-09-04 19:00:33 +020070
Stefan Hajnoczifd03c2b2017-07-05 13:57:36 +010071DEF("measure", img_measure,
72"measure [--output=ofmt] [-O output_fmt] [-o options] [--size N | [--object objectdef] [--image-opts] [-f fmt] [-l snapshot_param] filename]")
Peter Maydell195b5102020-01-24 16:26:02 +000073SRST
74.. option:: measure [--output=OFMT] [-O OUTPUT_FMT] [-o OPTIONS] [--size N | [--object OBJECTDEF] [--image-opts] [-f FMT] [-l SNAPSHOT_PARAM] FILENAME]
75ERST
Stefan Hajnoczifd03c2b2017-07-05 13:57:36 +010076
Stuart Brady153859b2009-06-07 00:42:17 +010077DEF("snapshot", img_snapshot,
Fam Zhenga8d16f92017-05-03 00:35:40 +080078 "snapshot [--object objectdef] [--image-opts] [-U] [-q] [-l | -a snapshot | -c snapshot | -d snapshot] filename")
Peter Maydell195b5102020-01-24 16:26:02 +000079SRST
80.. option:: snapshot [--object OBJECTDEF] [--image-opts] [-U] [-q] [-l | -a SNAPSHOT | -c SNAPSHOT | -d SNAPSHOT] FILENAME
81ERST
Kevin Wolf3e85c6f2010-01-12 12:55:18 +010082
83DEF("rebase", img_rebase,
Fam Zhenga8d16f92017-05-03 00:35:40 +080084 "rebase [--object objectdef] [--image-opts] [-U] [-q] [-f fmt] [-t cache] [-T src_cache] [-p] [-u] -b backing_file [-F backing_fmt] filename")
Peter Maydell195b5102020-01-24 16:26:02 +000085SRST
86.. option:: rebase [--object OBJECTDEF] [--image-opts] [-U] [-q] [-f FMT] [-t CACHE] [-T SRC_CACHE] [-p] [-u] -b BACKING_FILE [-F BACKING_FMT] FILENAME
87ERST
Stefan Hajnocziae6b0ed2010-04-24 09:12:12 +010088
89DEF("resize", img_resize,
John Snow9775fcd2018-05-03 18:56:47 -040090 "resize [--object objectdef] [--image-opts] [-f fmt] [--preallocation=prealloc] [-q] [--shrink] filename [+ | -]size")
Peter Maydell195b5102020-01-24 16:26:02 +000091SRST
92.. option:: resize [--object OBJECTDEF] [--image-opts] [-f FMT] [--preallocation=PREALLOC] [-q] [--shrink] FILENAME [+ | -]SIZE
93ERST