qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@redhat.com>
To: Fam Zheng <famz@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>,
	jenelson@redhat.com, qemu-devel@nongnu.org,
	Max Reitz <mreitz@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 2/2] qemu-img: fix rebase src_cache option documentation
Date: Tue, 2 Sep 2014 11:01:55 +0100	[thread overview]
Message-ID: <20140902100155.GF29067@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <20140902025253.GB5586@T430.redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1735 bytes --]

On Tue, Sep 02, 2014 at 10:52:53AM +0800, Fam Zheng wrote:
> 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 <jenelson@redhat.com>
> > Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
> > ---
> >  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"? :)

Ha!  Thanks for spotting that.  I managed to typo it.  Fixed in v2.

Stefan

[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]

      reply	other threads:[~2014-09-02 10:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-01 15:11 [Qemu-devel] [PATCH 0/2] qemu-img: src_mode option documentation improvements Stefan Hajnoczi
2014-09-01 15:11 ` [Qemu-devel] [PATCH 1/2] qemu-img: clarify src_cache option documentation Stefan Hajnoczi
2014-09-02  2:50   ` Fam Zheng
2014-09-01 15:11 ` [Qemu-devel] [PATCH 2/2] qemu-img: fix rebase " Stefan Hajnoczi
2014-09-02  2:52   ` Fam Zheng
2014-09-02 10:01     ` Stefan Hajnoczi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140902100155.GF29067@stefanha-thinkpad.redhat.com \
    --to=stefanha@redhat.com \
    --cc=famz@redhat.com \
    --cc=jenelson@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=mreitz@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).