From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Kaot3-0001T7-FP for mharc-grub-devel@gnu.org; Wed, 03 Sep 2008 05:42:53 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kaot1-0001SG-Dl for grub-devel@gnu.org; Wed, 03 Sep 2008 05:42:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kaot0-0001Rh-LQ for grub-devel@gnu.org; Wed, 03 Sep 2008 05:42:50 -0400 Received: from [199.232.76.173] (port=56836 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kaot0-0001RR-AP for grub-devel@gnu.org; Wed, 03 Sep 2008 05:42:50 -0400 Received: from fg-out-1718.google.com ([72.14.220.156]:9306) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kaot0-0006aw-94 for grub-devel@gnu.org; Wed, 03 Sep 2008 05:42:50 -0400 Received: by fg-out-1718.google.com with SMTP id l26so113755fgb.30 for ; Wed, 03 Sep 2008 02:42:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:x-enigmail-version:content-type :content-transfer-encoding; bh=vLRClcOPPUlh+GRts1inrxJFNMyvmyiknQXpu9jFqsE=; b=FXhZh3tI82SAXDCD4ebFPMBisqjimmR9gwwY4U3SqD38605SALinm3VX4iMZPnIcyy +D60o5QJ/CFPITHI3Sd9Ww/gJbZ6QwoEUWPV7woMBQEapnJr0hlnEWyS33VI1uID1poi HzDgYIR5iDHG0bSb4Lxk59Fen19GejamhaWf8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :x-enigmail-version:content-type:content-transfer-encoding; b=kZmZuKwVmanxwWBuhEkSZIjrEYZ9siHx41IIFbLo4xTk/mDb+9vsGjk0FPghWqMPT4 xlJZahKHPCguchjOCqTAgxacJ+1AQfnUjWfFBw65IuA+pqWm/1wpnAe1oI4c6YWWo+QI MsWMLBhTQlJTYWdZpl7fkLrVGTdKNRR97U8UU= Received: by 10.86.79.19 with SMTP id c19mr6457990fgb.67.1220434968916; Wed, 03 Sep 2008 02:42:48 -0700 (PDT) Received: from ?192.168.1.15? ( [83.76.170.177]) by mx.google.com with ESMTPS id d6sm8165820fga.2.2008.09.03.02.42.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 03 Sep 2008 02:42:47 -0700 (PDT) Message-ID: <48BE5C14.3000105@gmail.com> Date: Wed, 03 Sep 2008 11:42:44 +0200 From: phcoder User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: The development of GRUB 2 X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: [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: Wed, 03 Sep 2008 09:42:51 -0000 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. So I suggest to add to grub_fs a pointer to an array in which fs module can put custom functions. Also in many filesystems it's quite difficult to add a new file or remove already existing one it's often quite easy to exchange 2 files or directories. So I intend to implement a call "swapfso" (FSO=File System Object) at least for fat and ext2. Such a call could be useful to have multiple OS on the same partition or to have multiple configurations of the same OS (e.g. normal and backup). Then I think to have this function in this extended list (even if this function can be implemented for more FS) unless maintainers suggest that such function should be a part of grub_fs. In this case a good idea would be to have 2 modules for fat,ext2,...: one with swapfso and one without for core image. Vladimir 'phcoder' Serbinenko