Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Mkbou-0004tU-Ah for mharc-grub-devel@gnu.org; Mon, 07 Sep 2009 06:51:36 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mkbos-0004sh-2m for grub-devel@gnu.org; Mon, 07 Sep 2009 06:51:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mkboo-0004qN-2q for grub-devel@gnu.org; Mon, 07 Sep 2009 06:51:33 -0400 Received: from [199.232.76.173] (port=56793 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mkbon-0004qE-MD for grub-devel@gnu.org; Mon, 07 Sep 2009 06:51:29 -0400 Received: from mx20.gnu.org ([199.232.41.8]:4938) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mkbon-00037B-5Q for grub-devel@gnu.org; Mon, 07 Sep 2009 06:51:29 -0400 Received: from smarthost03.mail.zen.net.uk ([212.23.3.142]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mkbom-0004qT-60 for grub-devel@gnu.org; Mon, 07 Sep 2009 06:51:28 -0400 Received: from [82.69.40.219] (helo=riva.pelham.vpn.ucam.org) by smarthost03.mail.zen.net.uk with esmtp (Exim 4.63) (envelope-from ) id 1Mkbok-0007E9-7F; Mon, 07 Sep 2009 10:51:26 +0000 Received: from cjwatson by riva.pelham.vpn.ucam.org with local (Exim 3.36 #1 (Debian)) id 1Mkboj-0004Mn-00; Mon, 07 Sep 2009 11:51:25 +0100 Date: Mon, 7 Sep 2009 11:51:25 +0100 From: Colin Watson To: The development of GRUB 2 Message-ID: <20090907105125.GN13423@riva.ucam.org> Mail-Followup-To: The development of GRUB 2 , debian-boot@lists.debian.org References: <20090907093030.GL13423@riva.ucam.org> <20090907101850.GM13423@riva.ucam.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-Smarthost03-IP: [82.69.40.219] X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Cc: debian-boot@lists.debian.org Subject: Re: Mad idea: grub-fuse 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: Mon, 07 Sep 2009 10:51:34 -0000 On Mon, Sep 07, 2009 at 06:39:13PM +0800, Bean wrote: > On Mon, Sep 7, 2009 at 6:18 PM, Colin Watson wrote: > > On Mon, Sep 07, 2009 at 06:07:48PM +0800, Bean wrote: > >> Actually I've considered this before. My goal is to add a mini FUSE fs > >> interface so that it can have read/write support in grub2 ! > > > > I'm actively uninterested in write support; in this case it would do > > much more harm than good. > > Hi, > > It has some usage, actually both OpenFirmware and EFI have write > driver, it can be used to edit boot config files. And we don't need to > support all fs, for example, write support for fat is quite useful > while don't require much effort to implement. In the case of os-prober, write support is unnecessary and I do not want it enabled. I don't mind what's done elsewhere, but for the use case of os-prober it absolutely must be possible to turn off write support. > > The level of functionality provided by the existing filesystem modules > > would be quite sufficient. > > Oh I see, you mean the other way around, using the grub fs code to > implement a FUSE driver. But I don't see why not just modify os-prober > to work with grub-fstest, this is much simpler than writing a FUSE > wrapper. The changes to do that in os-prober would be sufficiently intrusive that they simply aren't going to happen (remember that os-prober needs to work without GRUB too). A FUSE wrapper would make it possible to just replace the mount step, which is much easier from the client side. (Yes, I know it's some work in GRUB, which is why this thread is labelled "Mad idea".) -- Colin Watson [cjwatson@ubuntu.com]