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(-)


Reply via email to