Received: from [140.186.70.92] (port=49601 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ph1qK-0005ny-S5 for qemu-devel@nongnu.org; Sun, 23 Jan 2011 10:27:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ph1qJ-0002Df-Ct for qemu-devel@nongnu.org; Sun, 23 Jan 2011 10:27:04 -0500 Received: from fmmailgate02.web.de ([217.72.192.227]:49561) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ph1qJ-0002DM-6j for qemu-devel@nongnu.org; Sun, 23 Jan 2011 10:27:03 -0500 Message-Id: <3A7986CF-0E4B-48ED-A48F-696405F3F0DD@web.de> From: =?ISO-8859-1?Q?Andreas_F=E4rber?= In-Reply-To: <1295648355-17359-2-git-send-email-ctang@us.ibm.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: [Qemu-devel] [PATCH 2/3] FVD: Added the simulated 'blksim' driver Date: Sun, 23 Jan 2011 16:26:59 +0100 References: <1295648355-17359-1-git-send-email-ctang@us.ibm.com> <1295648355-17359-2-git-send-email-ctang@us.ibm.com> Sender: andreas.faerber@web.de List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Chunqiang Tang Cc: Kevin Wolf , QEMU Developers Am 21.01.2011 um 23:19 schrieb Chunqiang Tang: > diff --git a/block/blksim.c b/block/blksim.c > new file mode 100644 > index 0000000..a92ba11 > --- /dev/null > +++ b/block/blksim.c Some formal comments, since you're introducing a new file: > @@ -0,0 +1,752 @@ > +/* Headers usually start with a one-line summary, "QEMU simulated block driver" maybe? > + * Copyright (c) 2010-2011 IBM > + * > + * Authors: > + * Chunqiang Tang > + * > + * This work is licensed under the terms of the GNU GPL, version 2. > + * See the COPYING file in the top-level directory. Can you make this GPLv2-or-later to avoid future hassles? > +#ifndef TRUE > +# define TRUE 1 > +#endif > + > +#ifndef FALSE > +# define FALSE 0 > +#endif I don't think these two belong here. stdbool.h defines true and false with identical values. http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdbool.h.html Not sure about TRUE and FALSE. If we want them as local definitions, they should rather go to qemu- common.h than to individual source files. Regards, Andreas