From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1br0mi-00024W-Bm for qemu-devel@nongnu.org; Mon, 03 Oct 2016 06:47:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1br0mh-0004mf-Ew for qemu-devel@nongnu.org; Mon, 03 Oct 2016 06:47:48 -0400 Date: Mon, 3 Oct 2016 12:47:37 +0200 From: =?UTF-8?B?VG9tw6HFoSBHb2xlbWJpb3Zza8O9?= Message-ID: <20161003124737.2da311cf@fiorina> In-Reply-To: References: <598de7ff27e32fcb1b7f677f40fb8da4f0a1f512.1475434971.git.tgolembi@redhat.com> <20161003085213.GA13491@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Paolo Bonzini Cc: "Daniel P. Berrange" , Kevin Wolf , qemu-devel@nongnu.org, qemu-block@nongnu.org, Max Reitz On Mon, 3 Oct 2016 11:20:44 +0200 Paolo Bonzini wrote: > On 03/10/2016 10:52, Daniel P. Berrange wrote: > > On Sun, Oct 02, 2016 at 09:13:29PM +0200, Tom=C3=A1=C5=A1 Golembiovsk= =C3=BD wrote: =20 > >> Added two new options 'offset' and 'size'. This makes it possible to u= se > >> 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 probab= ly > >> require that the size of the device is kept constant (i.e. no resizing= ). > >> > >> Signed-off-by: Tom=C3=A1=C5=A1 Golembiovsk=C3=BD > >> --- > >> block/raw-posix.c | 97 ++++++++++++++++++++++++++++++++++++++++++++++= +++++---- > >> 1 file changed, 91 insertions(+), 6 deletions(-) =20 > >=20 > > An equivalent change is needed to raw-win32.c =20 >=20 > Actually, it should be done _only_ in block/raw_bsd.c. You mean in raw-posix.c and in raw_bsd.c, or just raw_bsd.c? Tomas --=20 Tom=C3=A1=C5=A1 Golembiovsk=C3=BD