[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] raw-posix: add 'offset' and 'size' options
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH] raw-posix: add 'offset' and 'size' options |
Date: |
Mon, 3 Oct 2016 13:20:34 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 |
On 03/10/2016 12:47, Tomáš Golembiovský wrote:
> On Mon, 3 Oct 2016 11:20:44 +0200
> Paolo Bonzini <address@hidden> 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ý <address@hidden>
>>>> ---
>>>> 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?
Just raw_bsd.c.
Paolo
- [Qemu-devel] [PATCH] raw-posix: add 'offset' and 'size' options, Tomáš Golembiovský, 2016/10/02
- Re: [Qemu-devel] [PATCH] raw-posix: add 'offset' and 'size' options, Daniel P. Berrange, 2016/10/03
- Re: [Qemu-devel] [PATCH] raw-posix: add 'offset' and 'size' options, Tomáš Golembiovský, 2016/10/03
- Re: [Qemu-devel] [PATCH] raw-posix: add 'offset' and 'size' options, Daniel P. Berrange, 2016/10/03
- Re: [Qemu-devel] [PATCH] raw-posix: add 'offset' and 'size' options, Tomáš Golembiovský, 2016/10/03
- Re: [Qemu-devel] [PATCH] raw-posix: add 'offset' and 'size' options, Daniel P. Berrange, 2016/10/03
- Re: [Qemu-devel] [PATCH] raw-posix: add 'offset' and 'size' options, Kevin Wolf, 2016/10/04
- Re: [Qemu-devel] [PATCH] raw-posix: add 'offset' and 'size' options, Daniel P. Berrange, 2016/10/04
- Re: [Qemu-devel] [PATCH] raw-posix: add 'offset' and 'size' options, Eric Blake, 2016/10/04
- Re: [Qemu-devel] [PATCH] raw-posix: add 'offset' and 'size' options, Tomáš Golembiovský, 2016/10/04
Re: [Qemu-devel] [PATCH] raw-posix: add 'offset' and 'size' options, Eric Blake, 2016/10/03
Re: [Qemu-devel] [PATCH] raw-posix: add 'offset' and 'size' options, Kevin Wolf, 2016/10/04