Re: [Qemu-devel] [PATCH v5] raw_bsd: add offset and size options

2016-10-26 Thread Kevin Wolf
Am 25.10.2016 um 23:37 hat Tomáš Golembiovský geschrieben: > I should test my code more before submitting it to ML. I have found two > bugs in the patch. Maybe one thing you could/should do is add a second patch which adds a qemu-iotests case to test that the options are working correctly. Kevin

Re: [Qemu-devel] [PATCH v5] raw_bsd: add offset and size options

2016-10-25 Thread Tomáš Golembiovský
I should test my code more before submitting it to ML. I have found two bugs in the patch. On Sun, 23 Oct 2016 16:54:37 +0200 Tomáš Golembiovský wrote: > +static int raw_read_options(QDict *options, BlockDriverState *bs, > +BDRVRawState *s, Error **errp) > +{ > +Error *local_err = NULL;

[Qemu-devel] [PATCH v5] raw_bsd: add offset and size options

2016-10-23 Thread Tomáš Golembiovský
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). When 'size' is specified we do our best to honour it. Signe