From: Alberto Garcia <berto@igalia.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org
Subject: Re: [Qemu-devel] [Qemu-block] [RFC] Intermediate block mirroring
Date: Thu, 9 Apr 2015 14:40:00 +0200 [thread overview]
Message-ID: <20150409124000.GA2500@igalia.com> (raw)
In-Reply-To: <20150409103928.GB2783@stefanha-thinkpad.redhat.com>
On Thu, Apr 09, 2015 at 11:39:28AM +0100, Stefan Hajnoczi wrote:
> > The goal would be to convert this:
> >
> > [A] -> [B] -> [C] -> [D]
> >
> > into this:
> >
> > [A] -> [B] -> [X] -> [D]
> >
> > where [D] is the active image and [X] would be a copy of [C]. The
> > latter would be unlinked from the chain.
> >
> > A use case would be to move disk images across different storage
> > backends.
>
> The simple solution to that problem is:
>
> Assumption: backing files are read only. (True in most cases.)
>
> 1. Copy the backing files using cp(1) or another method.
> 2. Issue QMP 'change-backing-file' command so that [D] uses [X] instead
> of [C].
>
> So it can be done today already.
So do you think it would be better to implement this somewhere else?
The code that I have for QEMU is quite simple, the actual algorithm
doesn't change, it only needs to do the changing of backing files in
mirror_exit().
Berto
next prev parent reply other threads:[~2015-04-09 12:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-02 13:28 [Qemu-devel] [RFC] Intermediate block mirroring Alberto Garcia
2015-04-02 16:56 ` Eric Blake
2015-04-09 10:39 ` [Qemu-devel] [Qemu-block] " Stefan Hajnoczi
2015-04-09 12:40 ` Alberto Garcia [this message]
2015-04-10 9:56 ` Stefan Hajnoczi
2015-04-10 13:02 ` Kevin Wolf
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=20150409124000.GA2500@igalia.com \
--to=berto@igalia.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
/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).