From: Kevin Wolf <kwolf@redhat.com>
To: adrian@smop.co.uk
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] qemu-img needs "-O host_device" describing
Date: Thu, 01 Oct 2009 11:57:02 +0200 [thread overview]
Message-ID: <4AC47CEE.1000405@redhat.com> (raw)
In-Reply-To: <20090930212736.GA17077@ash.smop.co.uk>
Am 30.09.2009 23:27, schrieb Adrian Bridgett:
> I've been trying to convert some personal KVM qemu (raw) file images
> to raw LVs using kvm-img -O raw. There's a short version and long
> version of this tale.
>
> The short version is "here is a patch to add '-O host_device' to the
> manpage", perhaps we should also warn if "kvm-img convert -O raw" is
> used on a block device (or even just automatically use host_device?)
>
> The long version is that first of all I changed block/raw-posix.c so
> that it didn't try and ftruncat() block devices and then eventually
> tracked down why "kvm-img convert -O raw" fails to block devices (it
> seeks past holes effectively which is good on files, but not block
> devices).
What is the result of this patch? Will raw instead of host_device work
without an error message for devices? If so, I'm against the change.
It's dangerous: qemu-img would leave zero blocks unchanged instead of
overwriting them with zeros, silently corrupting the converted data.
> Digging a bit deeper I found reference to "host_device" type and it
> turns out that using that as an output format fixes both these issues
> - with only one buglet - a hopefully irrelevant error:
>
> kvm-img convert -O host_device /var/lib/vm/bishop-disk /dev/rootvg/bishop-disk
> Unknown option 'size'
Yes, this is a bug in the host_device definition. I'll send a fix.
Your documentation fix looks fine. Can you resubmit it in a new
(top-level) mail with [PATCH] in its subject and a Signed-off-by line in
it? Only this way the maintainers will pick it up.
Kevin
next prev parent reply other threads:[~2009-10-01 9:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-30 21:27 [Qemu-devel] qemu-img needs "-O host_device" describing Adrian Bridgett
2009-10-01 8:16 ` [Qemu-devel] " Adrian Bridgett
2009-10-01 9:57 ` Kevin Wolf [this message]
2009-10-01 10:48 ` [Qemu-devel] " Adrian Bridgett
2009-10-01 12:07 ` Kevin Wolf
2009-10-01 23:42 ` Jamie Lokier
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=4AC47CEE.1000405@redhat.com \
--to=kwolf@redhat.com \
--cc=adrian@smop.co.uk \
--cc=qemu-devel@nongnu.org \
/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 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).