From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KeYJc-0002c6-Re for qemu-devel@nongnu.org; Sat, 13 Sep 2008 12:49:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KeYJb-0002aW-39 for qemu-devel@nongnu.org; Sat, 13 Sep 2008 12:49:44 -0400 Received: from [199.232.76.173] (port=37359 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KeYJa-0002aH-Tn for qemu-devel@nongnu.org; Sat, 13 Sep 2008 12:49:42 -0400 Received: from mail-gx0-f19.google.com ([209.85.217.19]:41212) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KeYJa-0005ew-Bq for qemu-devel@nongnu.org; Sat, 13 Sep 2008 12:49:42 -0400 Received: by gxk12 with SMTP id 12so20880998gxk.10 for ; Sat, 13 Sep 2008 09:49:41 -0700 (PDT) Message-ID: <48CBEEF2.6070608@codemonkey.ws> Date: Sat, 13 Sep 2008 11:48:50 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <48CB11EE.7040808@codemonkey.ws> <1221319815.4170.14.camel@frecb07144> <48CBE8E8.9010208@codemonkey.ws> In-Reply-To: <48CBE8E8.9010208@codemonkey.ws> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] Re: [PATCH][RFC][RFT] Let qemu-nbd build on Windows and replace QEMU_IMG/QEMU_NBD with QEMU_TOOL Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier Cc: "qemu-devel@nongnu.org" Anthony Liguori wrote: > Laurent Vivier wrote: >> Le vendredi 12 septembre 2008 à 20:05 -0500, Anthony Liguori a écrit : >> >>> This patch attempts to clean up the mess with qemu-nbd in the >>> Makefile in order to get it building and working on Windows. I >>> checked block-nbd, qemu-img, and qemu-nbd on Windows and Linux and >>> everything seems to work. However, there were some >>> defined(QEMU_IMG) that didn't include defined(QEMU_NBD) that now are >>> covered by QEMU_TOOL so I'd like Laurent to look them over and see >>> if they were intentional. >>> >> >> If I remember correctly they were intentional: >> - some of them because qemu-nbd didn't support windows (but you have >> corrected this) >> - others because qemu-img doesn't need to open file with O_DIRECT >> whereas qemu-nbd must (--nocache option) (and I think you break this) >> >> Did you test "qemu-nbd --nocache" ? >> > > No, but this is why I asked :-) > > So this begs the question, why does qemu-nbd need to open files with > O_DIRECT and why doesn't qemu-img? > > Can we just enable the code in both? Oh, I see. It's because we don't have bottom halves with QEMU_TOOL. That's easy enough to fix. I'll update the patch. Regards, Anthony Liguori