45e84a
From 8afe984ef7aa25cb2f8af51da021fdc8a242884d Mon Sep 17 00:00:00 2001
45e84a
From: Kevin Wolf <kwolf@redhat.com>
45e84a
Date: Wed, 7 Dec 2011 13:57:13 +0100
45e84a
Subject: [PATCH 24/25] Documentation: Add qemu-img -t parameter in man page
45e84a
45e84a
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
45e84a
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
45e84a
---
45e84a
 qemu-img-cmds.hx |    6 +++---
45e84a
 qemu-img.texi    |   10 +++++++---
45e84a
 2 files changed, 10 insertions(+), 6 deletions(-)
45e84a
45e84a
diff --git a/qemu-img-cmds.hx b/qemu-img-cmds.hx
45e84a
index 4be00a5..49dce7c 100644
45e84a
--- a/qemu-img-cmds.hx
45e84a
+++ b/qemu-img-cmds.hx
45e84a
@@ -24,13 +24,13 @@ ETEXI
45e84a
 DEF("commit", img_commit,
45e84a
     "commit [-f fmt] [-t cache] filename")
45e84a
 STEXI
45e84a
-@item commit [-f @var{fmt}] @var{filename}
45e84a
+@item commit [-f @var{fmt}] [-t @var{cache}] @var{filename}
45e84a
 ETEXI
45e84a
45e84a
 DEF("convert", img_convert,
45e84a
     "convert [-c] [-p] [-f fmt] [-t cache] [-O output_fmt] [-o options] [-s snapshot_name] [-S sparse_size] filename [filename2 [...]] output_filename")
45e84a
 STEXI
45e84a
-@item convert [-c] [-p] [-f @var{fmt}] [-O @var{output_fmt}] [-o @var{options}] [-s @var{snapshot_name}] [-S @var{sparse_size}] @var{filename} [@var{filename2} [...]] @var{output_filename}
45e84a
+@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}
45e84a
 ETEXI
45e84a
45e84a
 DEF("info", img_info,
45e84a
@@ -48,7 +48,7 @@ ETEXI
45e84a
 DEF("rebase", img_rebase,
45e84a
     "rebase [-f fmt] [-t cache] [-p] [-u] -b backing_file [-F backing_fmt] filename")
45e84a
 STEXI
45e84a
-@item rebase [-f @var{fmt}] [-p] [-u] -b @var{backing_file} [-F @var{backing_fmt}] @var{filename}
45e84a
+@item rebase [-f @var{fmt}] [-t @var{cache}] [-p] [-u] -b @var{backing_file} [-F @var{backing_fmt}] @var{filename}
45e84a
 ETEXI
45e84a
45e84a
 DEF("resize", img_resize,
45e84a
diff --git a/qemu-img.texi b/qemu-img.texi
45e84a
index 70fa321..b2ca3a5 100644
45e84a
--- a/qemu-img.texi
45e84a
+++ b/qemu-img.texi
45e84a
@@ -45,6 +45,10 @@ indicates the consecutive number of bytes that must contain only zeros
45e84a
 for qemu-img to create a sparse image during conversion. This value is rounded
45e84a
 down to the nearest 512 bytes. You may use the common size suffixes like
45e84a
 @code{k} for kilobytes.
45e84a
+@item -t @var{cache}
45e84a
+specifies the cache mode that should be used with the (destination) file. See
45e84a
+the documentation of the emulator's @code{-drive cache=...} option for allowed
45e84a
+values.
45e84a
 @end table
45e84a
45e84a
 Parameters to snapshot subcommand:
45e84a
@@ -87,11 +91,11 @@ this case. @var{backing_file} will never be modified unless you use the
45e84a
 The size can also be specified using the @var{size} option with @code{-o},
45e84a
 it doesn't need to be specified separately in this case.
45e84a
45e84a
-@item commit [-f @var{fmt}] @var{filename}
45e84a
+@item commit [-f @var{fmt}] [-t @var{cache}] @var{filename}
45e84a
45e84a
 Commit the changes recorded in @var{filename} in its base image.
45e84a
45e84a
-@item convert [-c] [-p] [-f @var{fmt}] [-O @var{output_fmt}] [-o @var{options}] [-s @var{snapshot_name}] [-S @var{sparse_size}] @var{filename} [@var{filename2} [...]] @var{output_filename}
45e84a
+@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}
45e84a
45e84a
 Convert the disk image @var{filename} or a snapshot @var{snapshot_name} to disk image @var{output_filename}
45e84a
 using format @var{output_fmt}. It can be optionally compressed (@code{-c}
45e84a
@@ -121,7 +125,7 @@ they are displayed too.
45e84a
45e84a
 List, apply, create or delete snapshots in image @var{filename}.
45e84a
45e84a
-@item rebase [-f @var{fmt}] [-p] [-u] -b @var{backing_file} [-F @var{backing_fmt}] @var{filename}
45e84a
+@item rebase [-f @var{fmt}] [-t @var{cache}] [-p] [-u] -b @var{backing_file} [-F @var{backing_fmt}] @var{filename}
45e84a
45e84a
 Changes the backing file of an image. Only the formats @code{qcow2} and
45e84a
 @code{qed} support changing the backing file.
45e84a
-- 
45e84a
1.7.7.5
45e84a