Skip to contentSkip to conversation

Fixes to qemu-nbd (--offset/--image-size)

PATCH In review Tomáš Golembiovský 1 participant 1 message Sep 20, 2016

lore
Share & tools
lore
#0 lore raw

cover Fixes to qemu-nbd (--offset/--image-size)

The two patches basically "fix" the usage of --offset in qemu-nbd.

The first patch fixes the issue that when offset is used the device size is not updated and the client may request read/write beyond the end of the file.

Second patch adds new argument --image-size to hard set the size of the device. This is useful in combination with --offset when the image is embedded in a file, but does not span to the end of the file.

Tomáš Golembiovský (2):
qemu-nbd: Shrink image size by specified offset
qemu-nbd: Add --image-size option

 qemu-nbd.c    | 43 ++++++++++++++++++++++++++++++++++++++-----
 qemu-nbd.texi |  4 ++++
 2 files changed, 42 insertions(+), 5 deletions(-)
Signature · 1 line
2.9.3