From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqzQf-0002Vb-B9 for qemu-devel@nongnu.org; Mon, 03 Oct 2016 05:20:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqzQe-0004FT-Cw for qemu-devel@nongnu.org; Mon, 03 Oct 2016 05:20:57 -0400 Sender: Paolo Bonzini References: <598de7ff27e32fcb1b7f677f40fb8da4f0a1f512.1475434971.git.tgolembi@redhat.com> <20161003085213.GA13491@redhat.com> From: Paolo Bonzini Message-ID: Date: Mon, 3 Oct 2016 11:20:44 +0200 MIME-Version: 1.0 In-Reply-To: <20161003085213.GA13491@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH] raw-posix: add 'offset' and 'size' options List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" , =?UTF-8?B?VG9tw6HFoSBHb2xlbWJpb3Zza8O9?= Cc: Kevin Wolf , qemu-devel@nongnu.org, qemu-block@nongnu.org, Max Reitz On 03/10/2016 10:52, Daniel P. Berrange wrote: > On Sun, Oct 02, 2016 at 09:13:29PM +0200, Tomáš Golembiovský wrote: >> Added two new options 'offset' and 'size'. This makes it possible to use >> only part of the file as a device. This can be used e.g. to limit the >> access only to single partition in a disk image or use a disk inside a >> tar archive (like OVA). >> >> For now this is only possible for files in read-only mode. It should be >> possible to extend it later to allow read-write mode, but would probably >> require that the size of the device is kept constant (i.e. no resizing). >> >> Signed-off-by: Tomáš Golembiovský >> --- >> block/raw-posix.c | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++---- >> 1 file changed, 91 insertions(+), 6 deletions(-) > > An equivalent change is needed to raw-win32.c Actually, it should be done _only_ in block/raw_bsd.c. Paolo