From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KEgrx-00057f-PP for qemu-devel@nongnu.org; Fri, 04 Jul 2008 04:42:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KEgrv-00056r-81 for qemu-devel@nongnu.org; Fri, 04 Jul 2008 04:42:17 -0400 Received: from [199.232.76.173] (port=43179 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEgru-00056T-TX for qemu-devel@nongnu.org; Fri, 04 Jul 2008 04:42:14 -0400 Received: from ecfrec.frec.bull.fr ([129.183.4.8]:45015) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KEgrs-0005h9-Uc for qemu-devel@nongnu.org; Fri, 04 Jul 2008 04:42:13 -0400 Subject: Re: [Qemu-devel] [4838] Allow QEMU to connect directly to an NBD server, by Laurent Vivier. From: Laurent Vivier In-Reply-To: <20080704115101.5BC9.20F538E7@nsfocus.com> References: <20080704092849.5BC0.20F538E7@nsfocus.com> <20080704023451.GO7007@networkno.de> <20080704115101.5BC9.20F538E7@nsfocus.com> Content-Type: multipart/mixed; boundary="=-lPYccqGOYRelxNfWTUTI" Date: Fri, 04 Jul 2008 10:42:07 +0200 Message-Id: <1215160927.3802.4.camel@frecb07144> Mime-Version: 1.0 Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: chenqing Cc: "qemu-devel@nongnu.org" --=-lPYccqGOYRelxNfWTUTI Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Le vendredi 04 juillet 2008 =C3=A0 11:51 +0800, chenqing a =C3=A9crit : > >=20 > > Hm, how much of nbd.c works on windows? >=20 > We don't care nbd.c works on windows, we just want to compile qemu on > windows smoothly. In fact, I can did it successfully yestoday, but fail= ed > today because these error. The attached patch should disable NBD on win32. Regards, Laurent --=20 ------------- Laurent.Vivier@bull.net --------------- "The best way to predict the future is to invent it." - Alan Kay --=-lPYccqGOYRelxNfWTUTI Content-Disposition: attachment; filename=nbd-win32.patch Content-Type: text/x-vhdl; name=nbd-win32.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit --- Makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) Index: qemu/Makefile =================================================================== --- qemu.orig/Makefile 2008-07-04 10:39:31.000000000 +0200 +++ qemu/Makefile 2008-07-04 10:39:35.000000000 +0200 @@ -42,7 +42,10 @@ recurse-all: $(SUBDIR_RULES) BLOCK_OBJS=cutils.o qemu-malloc.o BLOCK_OBJS+=block-cow.o block-qcow.o aes.o block-vmdk.o block-cloop.o BLOCK_OBJS+=block-dmg.o block-bochs.o block-vpc.o block-vvfat.o -BLOCK_OBJS+=block-qcow2.o block-parallels.o block-nbd.o +BLOCK_OBJS+=block-qcow2.o block-parallels.o +ifndef CONFIG_WIN32 +BLOCK_OBJS+=block-nbd.o +endif ###################################################################### # libqemu_common.a: Target independent part of system emulation. The @@ -50,7 +53,10 @@ BLOCK_OBJS+=block-qcow2.o block-parallel # system emulation, i.e. a single QEMU executable should support all # CPUs and machines. -OBJS=nbd.o $(BLOCK_OBJS) +OBJS=$(BLOCK_OBJS) +ifndef CONFIG_WIN32 +OBJS+=nbd.o +endif OBJS+=readline.o console.o OBJS+=block.o @@ -159,11 +165,11 @@ libqemu_user.a: $(USER_OBJS) rm -f $@ $(AR) rcs $@ $(USER_OBJS) -QEMU_IMG_BLOCK_OBJS = nbd.o $(BLOCK_OBJS) +QEMU_IMG_BLOCK_OBJS = $(BLOCK_OBJS) ifdef CONFIG_WIN32 QEMU_IMG_BLOCK_OBJS += qemu-img-block-raw-win32.o else -QEMU_IMG_BLOCK_OBJS += qemu-img-block-raw-posix.o +QEMU_IMG_BLOCK_OBJS += nbd.o qemu-img-block-raw-posix.o endif ###################################################################### --=-lPYccqGOYRelxNfWTUTI--