Received: from list by monty-python.gnu.org with archive (Exim 4.30) id 1B5Ply-00038Y-FJ for mharc-grub-devel@gnu.org; Mon, 22 Mar 2004 08:47:22 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B5Plw-00037x-55 for grub-devel@gnu.org; Mon, 22 Mar 2004 08:47:20 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B5PlP-000334-Ku for grub-devel@gnu.org; Mon, 22 Mar 2004 08:47:18 -0500 Received: from [213.228.0.169] (helo=postfix3-2.free.fr) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B5PlP-00032u-2h for grub-devel@gnu.org; Mon, 22 Mar 2004 08:46:47 -0500 Received: from openbrick.enbug.org (boitelle-1-82-66-127-114.fbx.proxad.net [82.66.127.114]) by postfix3-2.free.fr (Postfix) with ESMTP id E0816C090 for ; Mon, 22 Mar 2004 14:46:41 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by openbrick.enbug.org (Postfix) with ESMTP id AE7AA177500 for ; Mon, 22 Mar 2004 16:47:02 +0100 (CET) From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Mon, 22 Mar 2004 14:49:41 +0100 User-Agent: KMail/1.5.3 References: <40595AA3.6000800@ciam.ru> <200403211711.52377.okuji@enbug.org> <405EA1DD.7030606@ciam.ru> In-Reply-To: <405EA1DD.7030606@ciam.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200403221449.41600.okuji@enbug.org> Subject: Re: GRUB2: *BSD and more patch X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2004 13:47:20 -0000 On Monday 22 March 2004 09:20, Sergey Matveychuk wrote: > Yoshinori K. Okuji wrote: > >>- if (! S_ISBLK (st.st_mode)) > >> > >>- return make_device_name (drive, -1, -1); > >>- > > > > This part is not good. The problem here is that we want to support > > installing GRUB into a normal file as well as a device file. > > OK. I've taken it back. I got an advise from Mr.Soda personally about the block device issue. And, I now think it is better to use S_ISREG rather than S_ISBLK when determining if a file is a disk device or a normal file. That is, use S_ISREG for a normal file, and use ! S_ISREG for a disk device. So, regardless of your OS, let's use: if (S_ISREG (st.st_mode)) return make_device_name (drive, -1, -1); The same applies to other places where S_ISBLK is used. > > BTW, I confirmed that you haven't assigned your copyright on GRUB > > to the FSF yet. For a GNU project, it is a custom to assign your > > copyright to the FSF, so that the FSF can fight instead of you in a > > court when someone claims that our software is illegal. Also, this > > step of a copyright assignment makes sure that your contribution > > will be free in freedom forever. So, would you like to sign a > > copyright assignment for GRUB? If you need more information, don't > > hesitate to ask me. We can talk privately if you want. > > Do you mean GRUB1? There is no difference between GRUB 1 and GRUB 2, as far as we talk about the legal issue, since they are the same software from legal point of view. It's GRUB. > @@ -194,7 +197,11 @@ pupa_memalign (pupa_size_t align, pupa_s > { > void *p; > > +#ifdef HAVE_MEMALIGN > p = memalign (align, size); > +#else > + pupa_util_error ("memalign not available"); > +#endif > if (! p) > pupa_util_error ("out of memory"); This segfaults if pupa_memalign is used actually. It must return a NULL pointer if fails. Okuji