]> Git Repo - qemu.git/commit - qemu-nbd.c
qemu-nbd: Shrink image size by specified offset
authorTomáš Golembiovský <[email protected]>
Wed, 5 Oct 2016 21:40:20 +0000 (23:40 +0200)
committerPaolo Bonzini <[email protected]>
Thu, 6 Oct 2016 16:04:13 +0000 (18:04 +0200)
commite424b6550f486b2a9ab32b13c3824021199bac54
tree3cd45550b2276e87a281ffe6adbc1f2b4f535dd6
parentfbe7e3327a8cfa1b08664c2cda7a0a341cf0530a
qemu-nbd: Shrink image size by specified offset

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ý <[email protected]>
Message-Id: <8a31654cb182932db78b95aae1e904fc2bd1c465.1475698895[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
qemu-nbd.c
This page took 0.024889 seconds and 4 git commands to generate.