Received: from eggs.gnu.org ([2001:4830:134:3::10]:54471) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOeDO-0004WR-6Z for qemu-devel@nongnu.org; Mon, 01 Sep 2014 22:53:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XOeDI-0007pg-2Z for qemu-devel@nongnu.org; Mon, 01 Sep 2014 22:53:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:15103) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOeDH-0007pc-Pt for qemu-devel@nongnu.org; Mon, 01 Sep 2014 22:52:55 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s822qtX5019796 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 1 Sep 2014 22:52:55 -0400 Date: Tue, 2 Sep 2014 10:52:53 +0800 From: Fam Zheng Message-ID: <20140902025253.GB5586@T430.redhat.com> References: <1409584287-21844-1-git-send-email-stefanha@redhat.com> <1409584287-21844-3-git-send-email-stefanha@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1409584287-21844-3-git-send-email-stefanha@redhat.com> Subject: Re: [Qemu-devel] [PATCH 2/2] qemu-img: fix rebase src_cache option documentation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Kevin Wolf , jenelson@redhat.com, qemu-devel@nongnu.org, Max Reitz On Mon, 09/01 16:11, Stefan Hajnoczi wrote: > 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 > --- > qemu-img.texi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/qemu-img.texi b/qemu-img.texi > index 4380d56..7c2df14 100644 > --- a/qemu-img.texi > +++ b/qemu-img.texi > @@ -341,7 +341,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 file files. Is "backing file files" intended, why not just "backing files"? :) Fam > > There are two different modes in which @code{rebase} can operate: > @table @option > -- > 1.9.3 > >