Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KTIg6-0005g2-7C for mharc-grub-devel@gnu.org; Wed, 13 Aug 2008 11:54:26 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KTIg3-0005f1-SE for grub-devel@gnu.org; Wed, 13 Aug 2008 11:54:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KTIg1-0005de-7N for grub-devel@gnu.org; Wed, 13 Aug 2008 11:54:23 -0400 Received: from [199.232.76.173] (port=36593 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTIg0-0005dR-Uj for grub-devel@gnu.org; Wed, 13 Aug 2008 11:54:21 -0400 Received: from smtp-vbr11.xs4all.nl ([194.109.24.31]:3493) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KTIg0-0005cx-Fu for grub-devel@gnu.org; Wed, 13 Aug 2008 11:54:20 -0400 Received: from localhost.localdomain (249-174.surfsnel.dsl.internl.net [145.99.174.249]) by smtp-vbr11.xs4all.nl (8.13.8/8.13.8) with ESMTP id m7DFsJND090144 for ; Wed, 13 Aug 2008 17:54:19 +0200 (CEST) (envelope-from mgerards@xs4all.nl) From: Marco Gerards To: The development of GRUB 2 References: <1217806150.9634.24.camel@localhost> <87iqug33m9.fsf@xs4all.nl> <1217891426.15145.38.camel@localhost> <87vdyfem5k.fsf@xs4all.nl> <1217954381.14674.31.camel@localhost> <1218296029.20937.10.camel@localhost> <87k5el9q99.fsf@xs4all.nl> <1218629785.8757.30.camel@localhost> <20080813130022.GB26618@thorin> <1218637704.8757.60.camel@localhost> <20080813151406.GA31203@thorin> Mail-Copies-To: mgerards@xs4all.nl Date: Wed, 13 Aug 2008 17:57:57 +0200 In-Reply-To: <20080813151406.GA31203@thorin> (Robert Millan's message of "Wed, 13 Aug 2008 17:14:06 +0200") Message-ID: <873al83o1m.fsf@xs4all.nl> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by XS4ALL Virus Scanner X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.6-4.9 Subject: Re: [PATCH] Drivemap module 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: Wed, 13 Aug 2008 15:54:24 -0000 Robert Millan writes: [...] >> > This is a lot of code being added to kernel, and space in kernel is highly >> > valuable. >> > >> > Would the same functionality work if put inside a module? >> For the reasons discussed above in the loader.h snippet, I don't think >> so: the only "lighter" solution would be to just put a drivemap_hook >> variable that would be called before boot, but as I mentioned before, >> this solution can be employed by other modules as well. >> >> Besides (and I realize this is not a great defense) it's not _that_ much >> code: just a simple linked-list implementation with add and delete >> operations, and the iteration of it on loader_boot. I did not check how >> many bytes does this patch add by itself, but I can run some simulations >> (I totally _had_ to say that ^^) if you want. > > Having a small kernel is highly desireable for most users. If the kernel is > too big, it won't fit and then either we have to use blocklists (which are > unreliable), or we have to abort the install. > > Please, try to find a way that doesn't increase kernel size significantly. > > If the kernel interfaces are not extensible enough, you could try to readjust > them for your needs. This approach works well most of the time (although I > haven't studied this particular problem in detail). Like discussed before. Bring up such modifications like hooks up in a *separate* thread. I already said that not everyone reads this discussion. I will not accept a patch that changes the kernel if it is part of a bigger patch that not many people read. Please don't discuss this over with Robert and me, you know that it was pointed out that this has to be a patch in a separate thread. Furthermore, this is a way to get some feedback from Bean who wants something similar, IIRC. -- Marco