From: Anthony Liguori <anthony@codemonkey.ws>
To: Saggi Mizrahi <smizrahi@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 2/2] Added target to build libvdisk
Date: Mon, 22 Aug 2011 14:29:00 -0500 [thread overview]
Message-ID: <4E52ADFC.5070506@redhat.com> (raw)
In-Reply-To: <1314032798-21423-2-git-send-email-smizrahi@redhat.com>
On 08/22/2011 12:06 PM, Saggi Mizrahi wrote:
> libvdisk is a library that packages qemu's handling of disk images. This
> allows for other programs to link to it and get access to qemu image
> file abstractions.
>
> To use install the lib and #include<vdisk/block.h>
> all the bdrv_* functions work as expected.
>
> Signed-off-by: Saggi Mizrahi<smizrahi@redhat.com>
It's a good idea in principle but the approach is far too naive.
The block layer needs a good bit of modularization first. Test cases
need to be written, and most importantly, using the library shouldn't
require writing a bunch of dummy functions.
Regards,
Anthony Liguori
> ---
> .gitignore | 4 ++--
> Makefile.objs | 9 +++++++++
> 2 files changed, 11 insertions(+), 2 deletions(-)
>
> diff --git a/.gitignore b/.gitignore
> index 59c343c..a389059 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -1,5 +1,4 @@
> -config-devices.*
> -config-all-devices.*
> +config-devices.* config-all-devices.*
> config-host.*
> config-target.*
> trace.h
> @@ -15,6 +14,7 @@ libdis*
> libhw32
> libhw64
> libuser
> +libvdisk
> qapi-generated
> qemu-doc.html
> qemu-tech.html
> diff --git a/Makefile.objs b/Makefile.objs
> index 432b619..291f194 100644
> --- a/Makefile.objs
> +++ b/Makefile.objs
> @@ -171,6 +171,15 @@ common-obj-$(CONFIG_XEN_BACKEND) += xen_backend.o xen_devconfig.o
> common-obj-$(CONFIG_XEN_BACKEND) += xen_console.o xenfb.o xen_disk.o xen_nic.o
>
> ######################################################################
> +# libvdisk
> +
> +vdisk-obj-y = $(block-obj-y)
> +
> +vdisk-obj-y += qemu-tool.o qemu-error.o
> +vdisk-obj-y += $(oslib-obj-y) $(trace-obj-y) $(block-obj-y)
> +vdisk-obj-y += $(qobject-obj-y) $(version-obj-y) qemu-timer-common.o
> +
> +######################################################################
> # libuser
>
> user-obj-y =
next prev parent reply other threads:[~2011-08-22 19:29 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-22 17:06 [Qemu-devel] [PATCH 1/2] Better support for distros using lib64 dis Saggi Mizrahi
2011-08-22 17:06 ` [Qemu-devel] [PATCH 2/2] Added target to build libvdisk Saggi Mizrahi
2011-08-22 18:50 ` Blue Swirl
2011-08-22 19:29 ` Anthony Liguori [this message]
2011-08-23 16:12 ` Daniel P. Berrange
2011-08-23 16:14 ` Anthony Liguori
2011-08-23 16:18 ` Daniel P. Berrange
2011-08-23 16:21 ` Anthony Liguori
2011-08-24 11:32 ` Saggi Mizrahi
2011-08-24 12:50 ` Anthony Liguori
2011-08-24 12:55 ` Daniel P. Berrange
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=4E52ADFC.5070506@redhat.com \
--to=anthony@codemonkey.ws \
--cc=qemu-devel@nongnu.org \
--cc=smizrahi@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 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).