Re: [Qemu-devel] [PATCH v2] qemu-nbd: Shrink image size by specified offset

2016-10-06 Thread Paolo Bonzini
On 05/10/2016 23:40, Tomáš Golembiovský wrote: > When --offset is set the apparent device size has to be adjusted > accordingly. Otherwise client may request read/write beyond the file end > which would fail. > > Signed-off-by: Tomáš Golembiovský Queued, thanks. Paolo > --- > qemu-nbd.c | 8

Re: [Qemu-devel] [PATCH v2] qemu-nbd: Shrink image size by specified offset

2016-10-05 Thread Eric Blake
On 10/05/2016 04:40 PM, Tomáš Golembiovský wrote: > When --offset is set the apparent device size has to be adjusted > accordingly. Otherwise client may request read/write beyond the file end > which would fail. > > Signed-off-by: Tomáš Golembiovský > --- > qemu-nbd.c | 8 > 1 file chan

[Qemu-devel] [PATCH v2] qemu-nbd: Shrink image size by specified offset

2016-10-05 Thread Tomáš Golembiovský
When --offset is set the apparent device size has to be adjusted accordingly. Otherwise client may request read/write beyond the file end which would fail. Signed-off-by: Tomáš Golembiovský --- qemu-nbd.c | 8 1 file changed, 8 insertions(+) diff --git a/qemu-nbd.c b/qemu-nbd.c index 9