From 1a7d0d17b3b2aeae3c48895ee60da17e3ee27f32 Mon Sep 17 00:00:00 2001 From: Max Reitz Date: Fri, 24 Oct 2014 08:18:00 +0200 Subject: [PATCH 12/19] qemu-img: fix rebase src_cache option documentation Message-id: <1414138680-19600-5-git-send-email-mreitz@redhat.com> Patchwork-id: 61865 O-Subject: [RHEL-7.1 qemu-kvm PATCH v2 4/4] qemu-img: fix rebase src_cache option documentation Bugzilla: 1138691 RH-Acked-by: Laszlo Ersek RH-Acked-by: Markus Armbruster RH-Acked-by: Kevin Wolf From: Stefan Hajnoczi The src_cache option (-T) specifies the cache mode for backing files. It applies both the image's old backing file as well as the new backing file: ret = bdrv_open(&bs_old_backing, backing_name, NULL, NULL, src_flags, old_backing_drv, &local_err); if (ret) { ... } if (out_baseimg[0]) { bs_new_backing = bdrv_new("new_backing", &error_abort); ret = bdrv_open(&bs_new_backing, out_baseimg, NULL, NULL, src_flags, new_backing_drv, &local_err); if (ret) { ... } } The documentation only mentions the new backing file but it really applies to both. Suggested-by: Jeff Nelson Signed-off-by: Stefan Hajnoczi Reviewed-by: Max Reitz (cherry picked from commit 3ba6796d080a90440573ef29d657e4902be7e238) Signed-off-by: Max Reitz Signed-off-by: Miroslav Rezanina --- qemu-img.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu-img.texi b/qemu-img.texi index 4b7a331..5f99ebb 100644 --- a/qemu-img.texi +++ b/qemu-img.texi @@ -314,7 +314,7 @@ string), then the image is rebased onto no backing file (i.e. it will exist independently of any backing file). @var{cache} specifies the cache mode to be used for @var{filename}, whereas -@var{src_cache} specifies the cache mode for reading the new backing file. +@var{src_cache} specifies the cache mode for reading backing files. There are two different modes in which @code{rebase} can operate: @table @option -- 1.8.3.1