From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KbKUo-0000hk-8R for mharc-grub-devel@gnu.org; Thu, 04 Sep 2008 15:27:58 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KbKUm-0000ds-Re for grub-devel@gnu.org; Thu, 04 Sep 2008 15:27:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KbKUm-0000bU-47 for grub-devel@gnu.org; Thu, 04 Sep 2008 15:27:56 -0400 Received: from [199.232.76.173] (port=51228 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbKUl-0000bD-P3 for grub-devel@gnu.org; Thu, 04 Sep 2008 15:27:55 -0400 Received: from aybabtu.com ([69.60.117.155]:36078) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KbKUl-0002tu-A5 for grub-devel@gnu.org; Thu, 04 Sep 2008 15:27:55 -0400 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1KbKKI-00088K-Ho for grub-devel@gnu.org; Thu, 04 Sep 2008 21:17:06 +0200 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1KbKTB-0002Ts-4w for grub-devel@gnu.org; Thu, 04 Sep 2008 21:26:17 +0200 Date: Thu, 4 Sep 2008 21:26:17 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20080904192617.GC9133@thorin> References: <48BE5C14.3000105@gmail.com> <20080903103139.GB29762@thorin> <48BE824F.2040007@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48BE824F.2040007@gmail.com> Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: [RFC]swapfso and "ioctl" function for filesystems 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: Thu, 04 Sep 2008 19:27:57 -0000 On Wed, Sep 03, 2008 at 02:25:51PM +0200, phcoder wrote: > Robert Millan wrote: > > On Wed, Sep 03, 2008 at 11:42:44AM +0200, phcoder wrote: > >> Hello, all. > >> For some FS sometimes additional functions are needed. It could be some > >> type of control (e.g. in ZFS manage zpools) or preparation for OS > >> booting (e.g. in FAT put IO.SYS and MSDOS.SYS at the begining of the > >> root directory). While theese functions are quite specific to FS > >> sometimes are important to implement. > > > > What would be the purpose of that? Please describe a use case. > > > With ZFS or ext3cow: Suppose you made a huge mistake and installed > unbootable kernel and have no backup in another file. But ZFS/ext3cow > has its own backup. So ZFS/ext3cow driver may provide a call something like > static grub_err_t zfs_timeback (int timeref); > And anounce it like: > add_funcs={ > {"timeback", zfs_timeback}, > {0, 0} > }; > Then a module timeback.mod can suply a command like > timeback > which uses the function supplied by zfs and ext3cow. Could this be made more transparent? For example, with a variable. Also, I'm worried that this occupies core image size for non-critical functionality. -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."