qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] Fixes to qemu-nbd (--offset/--image-size)
@ 2016-09-20  9:36 Tomáš Golembiovský
  0 siblings, 0 replies; only message in thread
From: Tomáš Golembiovský @ 2016-09-20  9:36 UTC (permalink / raw)
  To: Paolo Bonzini, qemu-devel

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

-- 
2.9.3

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-09-20  9:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-20  9:36 [Qemu-devel] [PATCH 0/2] Fixes to qemu-nbd (--offset/--image-size) Tomáš Golembiovský

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).