From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLESr-0003tA-5o for qemu-devel@nongnu.org; Mon, 08 Oct 2012 10:37:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TLESi-0004UO-I1 for qemu-devel@nongnu.org; Mon, 08 Oct 2012 10:37:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39436) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLESi-0004UK-9Z for qemu-devel@nongnu.org; Mon, 08 Oct 2012 10:37:40 -0400 Message-ID: <5072E52A.4030504@redhat.com> Date: Mon, 08 Oct 2012 16:37:30 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1348855033-17174-1-git-send-email-kwolf@redhat.com> <1348855033-17174-13-git-send-email-kwolf@redhat.com> <506F190F.90100@redhat.com> <506F2187.6050403@redhat.com> In-Reply-To: <506F2187.6050403@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 12/30] QAPI: add command for live block commit, 'block-commit' List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: Kevin Wolf , Jeff Cody , qemu-devel@nongnu.org, anthony@codemonkey.ws Il 05/10/2012 20:05, Eric Blake ha scritto: > > If I commit snap1 into base, should /dir/active encode the backing file > as '/dir/base' (keep things absolute, since /dir/active had already been > absolute) or as 'base' (relative, since the part of the chain previously > referring to base was using relative). And if we store relative names, > we need to make sure that the relative name stored in /dir/active > correctly points to the correct file name, even if the ultimate base > file lives in a different directory (similar problems exist with > relative chains during block pull). > > I'm wondering if this means 'block-stream' and 'block-commit' both need > to add @mode:#optional arguments, similar to Paolo's 'drive-mirror' > command [1], so that the user can request 'absolute-paths' vs. > 'relative-paths' as the mode for which of two file names will be written > as the backing file at the end of the operation. Yes, everything that calls bdrv_change_backing_file should have such a @mode argument. Good point! Paolo > [1] https://lists.gnu.org/archive/html/qemu-devel/2012-09/msg04592.html