mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 19:33:39 +08:00
3e85c6fd71
This adds a rebase subcommand to qemu-img which allows to change the backing file of an image. In default mode, both the current and the new backing file need to exist, and after the rebase, the COW image is guaranteed to have the same guest visible content as before. To achieve this, old and new backing file are compared and, if necessary, data is copied from the old backing file into the COW image. With -u an unsafe mode is enabled that doesn't require the backing files to exist. It merely changes the backing file reference in the COW image. This is useful for renaming or moving the backing file. The user is responsible to make sure that the new backing file has no changes compared to the old one, or corruption may occur. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
54 lines
1.5 KiB
Haxe
54 lines
1.5 KiB
Haxe
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
|
|
STEXI
|
|
|
|
DEF("check", img_check,
|
|
"check [-f fmt] filename")
|
|
STEXI
|
|
@item check [-f @var{fmt}] @var{filename}
|
|
ETEXI
|
|
|
|
DEF("create", img_create,
|
|
"create [-f fmt] [-o options] filename [size]")
|
|
STEXI
|
|
@item create [-f @var{fmt}] [-o @var{options}] @var{filename} [@var{size}]
|
|
ETEXI
|
|
|
|
DEF("commit", img_commit,
|
|
"commit [-f fmt] filename")
|
|
STEXI
|
|
@item commit [-f @var{fmt}] @var{filename}
|
|
ETEXI
|
|
|
|
DEF("convert", img_convert,
|
|
"convert [-c] [-f fmt] [-O output_fmt] [-o options] filename [filename2 [...]] output_filename")
|
|
STEXI
|
|
@item convert [-c] [-f @var{fmt}] [-O @var{output_fmt}] [-o @var{options}] @var{filename} [@var{filename2} [...]] @var{output_filename}
|
|
ETEXI
|
|
|
|
DEF("info", img_info,
|
|
"info [-f fmt] filename")
|
|
STEXI
|
|
@item info [-f @var{fmt}] @var{filename}
|
|
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}
|
|
ETEXI
|
|
|
|
DEF("rebase", img_rebase,
|
|
"rebase [-u] -b backing_file [-F backing_fmt] filename")
|
|
STEXI
|
|
@item rebase [-u] -b @var{backing_file} [-F @var{backing_fmt}] @var{filename}
|
|
@end table
|
|
ETEXI
|