qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
To: Kevin Wolf <kwolf@redhat.com>
Cc: qemu-devel <qemu-devel@nongnu.org>, qemu-block@nongnu.org
Subject: Re: [Qemu-devel] block-commit & dropping privs
Date: Thu, 02 Apr 2015 13:58:51 +0300	[thread overview]
Message-ID: <551D20EB.8060800@msgid.tls.msk.ru> (raw)
In-Reply-To: <20150401123417.GF3593@noname.str.redhat.com>

01.04.2015 15:34, Kevin Wolf wrote:
[]
> Overriding the backing file should work like this:
> 
>     -drive file=...,backing.file.filename=/dev/fdset/2

Oh-ok, this works.  Sort of.

Because after performing commit (is there a difference between
commit hmp command and block-commit qmp command?  I used the
former so far), the new backing file name is recorded to the
qcow2 file header, and now, qemu-img can't operate on this
file anymore, telling me it can't access backing file due
to bad file descriptor.

So in order to finally commit the file I used qemu-system
again, running it like that specifying backing file, but
with -S option, and issued `commit' command again.

I noticed that I can't specify backing file for
qemu-img commit.

But overall, I think qemu-system should not modify backing
file name in this case.

When performing commit, does qemu mark the areas in the
overlay file as free after writing contents to the backing
file, or will these areas be written again by a subsequent
commit?  Somehow it smells like each next commit writes
more and more data and completes in more and more time.

Thanks,

/mjt

  reply	other threads:[~2015-04-02 10:59 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-27  9:07 [Qemu-devel] block-commit & dropping privs Michael Tokarev
2015-03-27 14:49 ` Eric Blake
2015-03-27 15:36   ` Michael Tokarev
2015-03-27 17:12     ` Eric Blake
2015-03-30 15:36       ` Kevin Wolf
2015-04-01  9:26         ` Michael Tokarev
2015-04-01  9:54           ` Michael Tokarev
2015-04-01 12:34             ` Kevin Wolf
2015-04-02 10:58               ` Michael Tokarev [this message]
2015-04-02 11:24                 ` Kevin Wolf
2015-04-02 12:04                   ` Michael Tokarev
2015-04-02 13:07                     ` Eric Blake
2015-04-03  4:28                       ` Jeff Cody
2015-04-03 19:49                         ` Eric Blake
2015-04-03 19:57                           ` Jeff Cody
2015-04-02 13:19                     ` Kevin Wolf
2015-04-06 15:37                       ` Michael Tokarev
2015-04-07  9:24                         ` Kevin Wolf
2015-04-03  3:59                   ` Jeff Cody
2015-04-07  9:18                     ` 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=551D20EB.8060800@msgid.tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --cc=kwolf@redhat.com \
    --cc=qemu-block@nongnu.org \
    --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).