From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57238) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ydcq1-0002uQ-Ui for qemu-devel@nongnu.org; Thu, 02 Apr 2015 06:59:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ydcq0-0002H5-Vs for qemu-devel@nongnu.org; Thu, 02 Apr 2015 06:59:05 -0400 Message-ID: <551D20EB.8060800@msgid.tls.msk.ru> Date: Thu, 02 Apr 2015 13:58:51 +0300 From: Michael Tokarev MIME-Version: 1.0 References: <55151DB7.3090200@msgid.tls.msk.ru> <55156DE0.4050209@redhat.com> <551578F4.9010400@msgid.tls.msk.ru> <55158F8B.9090607@redhat.com> <20150330153634.GC4305@noname.redhat.com> <551BB9DA.7030309@msgid.tls.msk.ru> <551BC040.9000806@msgid.tls.msk.ru> <20150401123417.GF3593@noname.str.redhat.com> In-Reply-To: <20150401123417.GF3593@noname.str.redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] block-commit & dropping privs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: qemu-devel , qemu-block@nongnu.org 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