All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Richard W.M. Jones" <rjones@redhat.com>
To: "Tomáš Golembiovský" <tgolembi@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 2/2] qemu-nbd: Add --image-size option
Date: Tue, 20 Sep 2016 13:45:49 +0100	[thread overview]
Message-ID: <20160920124549.GA27578@redhat.com> (raw)
In-Reply-To: <20160920133529.05889b97@fiorina>

On Tue, Sep 20, 2016 at 01:35:29PM +0200, Tomáš Golembiovský wrote:
> The second patch tries to solve the situation when you have file:
> 
>     || some data ; image ; some more data ||
> 
> In this case there is no way to say where the image ends and client may
> also access content in the "some more data" area. Thus corrupting the
> data outside the image.

Some background:

A use case for this is to be able to access a disk image which is
located inside an OVA file, without unpacking the OVA.  An OVA file is
[usually, not always] an uncompressed tar file.  It is relatively easy
to find the offset and size of the contained disk image, since tar
files are essentially concatenations of header + data + header + ...

OVA files may be terabytes in size, so avoiding unpacking is desirable
since it can save masses of disk space and time.

One place we could use this feature would be in virt-v2v.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html

      reply	other threads:[~2016-09-20 12:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-20  9:41 [Qemu-devel] [PATCH 2/2] qemu-nbd: Add --image-size option Tomáš Golembiovský
2016-09-20  9:59 ` Paolo Bonzini
2016-09-20 11:12   ` Daniel P. Berrange
2016-09-20 11:45     ` Paolo Bonzini
2016-10-02 19:33       ` Tomáš Golembiovský
2016-09-20 11:35   ` Tomáš Golembiovský
2016-09-20 12:45     ` Richard W.M. Jones [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160920124549.GA27578@redhat.com \
    --to=rjones@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=tgolembi@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.