On Mon, 3 Oct 2016 11:20:44 +0200 Paolo Bonzini <pbonz...@redhat.com> wrote:
> 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ý <tgole...@redhat.com> > >> --- > >> 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. You mean in raw-posix.c and in raw_bsd.c, or just raw_bsd.c? Tomas -- Tomáš Golembiovský <tgole...@redhat.com>