Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CE2xI-0003iJ-NN for mharc-grub-devel@gnu.org; Sun, 03 Oct 2004 05:47:00 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CE2xH-0003iD-KB for grub-devel@gnu.org; Sun, 03 Oct 2004 05:46:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CE2xH-0003i1-59 for grub-devel@gnu.org; Sun, 03 Oct 2004 05:46:59 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CE2xH-0003hy-2N for grub-devel@gnu.org; Sun, 03 Oct 2004 05:46:59 -0400 Received: from [145.74.66.11] (helo=mail-cn.han.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CE2qV-0000kL-12 for grub-devel@gnu.org; Sun, 03 Oct 2004 05:39:59 -0400 Received: from localhost (charlie.han.nl [145.74.66.9]) by mail-cn.han.nl (Postfix) with ESMTP id 942748DD8 for ; Sun, 3 Oct 2004 11:39:58 +0200 (CEST) Received: from mail-cn.han.nl ([145.74.66.11]) by localhost (charlie.han.nl [145.74.66.9]) (amavisd-new, port 10024) with ESMTP id 17059-10 for ; Sun, 3 Oct 2004 11:39:56 +0200 (CEST) Received: from mail1.han.nl (mail1.han.nl [145.74.103.11]) by mail-cn.han.nl (Postfix) with ESMTP id A5C538D33 for ; Sun, 3 Oct 2004 11:39:56 +0200 (CEST) Received: from marco.marco-g.com (mgerards.xs4all.nl [82.92.27.129]) by mail1.han.nl (Postfix) with ESMTP id 68700C047 for ; Sun, 3 Oct 2004 11:39:56 +0200 (CEST) Mail-Copies-To: metgerards@student.han.nl To: The development of GRUB 2 References: <20040922204335.GA13571@artax.karlin.mff.cuni.cz> <87u0tqm1wb.fsf@marco.marco-g.com> <20040922222219.GB20249@artax.karlin.mff.cuni.cz> <20040925162529.GA19193@artax.karlin.mff.cuni.cz> From: Marco Gerards Date: Sun, 03 Oct 2004 09:40:08 +0000 In-Reply-To: <20040925162529.GA19193@artax.karlin.mff.cuni.cz> (Tomas Ebenlendr's message of "Sat, 25 Sep 2004 18:25:29 +0200") Message-ID: <87hdpcf8cn.fsf@marco.marco-g.com> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new@vscan-cn.han.nl Subject: Re: hostfs patch X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 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: Sun, 03 Oct 2004 09:46:59 -0000 Tomas Ebenlendr writes: Hi Tomas, Here are a few more comments. Most are related to the GCS and there are some typos in the new comments. > * fs/hostfs.c: New file. Connects grub fs interface and libc file > interface. > * util/fakedisk.c: New file, implements fake disks. I think we discussed the location before. I am not sure, but the files that use POSIX calls should be in util/, the others should be in either fs/ or disks/. I see something specific to libc in fs/. Perhaps I just told you the wrong thing last time because I misunderstood things... > * include/grub/fs.h (grub_hostfs_init, grub_hostfs_fini): New > prototypes. > * include/grub/fakedisk.h: New file. > * include/grub/disk.h: New constant GRUB_DISK_DEVICE_FAKEDISK_ID. This should be: * include/grub/disk.h (enum grub_disk_dev_id): New member `GRUB_DISK_DEVICE_FAKEDISK_ID'. > * util/grub-emu.c (main): Added inicialization and destruction Typo. > + /* This shoud be much greater than zero. Some fs claims that disk is > + totaly bad while fs-probe if total_sectors to low. */ > + disk->total_sectors = 1234; Typo: sould -> should Please change this to 0 or so. In that case filesystems can't read from it in any case. And the filesystems that do that should be fixed, I plan to do that soon. I've encountered this same problem elsewhere. > + grub_fakedisk_entry_t d = fakedisks, *p = &fakedisks; Please split this up. > +grub_err_t grub_fakedisk_register (const char * name); > +/* Remove one fakedisk device. */ > +void grub_fakedisk_unregister (const char * name); Here you have a space between the `*' and the variable (name in this case). Please do not do this. Can you have a look if you do the same in other places in the code? I am sure i missed some. Thanks, Marco