From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Mahoney Subject: Re: Persistent module data Date: Thu, 12 Aug 2004 20:25:22 -0400 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <411C0A72.5060009@suse.com> References: <33598.128.115.223.147.1092244522.squirrel@gaia.ecs.csus.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from locomotive.csh.rit.edu ([129.21.60.149]:24688 "EHLO locomotive.unixthugs.org") by vger.kernel.org with ESMTP id S268910AbUHMAZD (ORCPT ); Thu, 12 Aug 2004 20:25:03 -0400 To: sirpj@ecs.csus.edu In-Reply-To: <33598.128.115.223.147.1092244522.squirrel@gaia.ecs.csus.edu> List-Id: linux-fsdevel.vger.kernel.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 sirpj@ecs.csus.edu wrote: | Hi, | | I signed up a while ago. Because I am working at LLNL as an Intern and | have been given a neat assignment that involves coding some extensions | to reiser. I am implementing a file queueing mechanism that maintains | files as they are written in FIFO order. When you call ioctl() the 'next | file' in the queue is returned. | | I have the FIFO queue implemented as a linked list that keeps track of | the file names and directory inodes that they are associated with. (This | was my first stab at it). | | My question is about data preservation from inside a FS... I want to | preserve the contents of my queue in case of a crash. When mount is | called I want to scan this list and rebuild the queues in memory. Is it | possible to write data out to a persistent file from within the system? | Would using the module parameter approach be a good way to go? . . . But | from what I understand it wouldn't necessarily export the data if the | system hangs and the module can't be removed. | | If anyone can help, has ideas, or some pointers, I would be very | grateful. For pointers on how to do this, have a look at the reiserfs xattr implementation. It manages normal files itself and hides them from the user. Since you're working with reiserfs, you could probably put the file underneath the .reiserfs_priv directory, and get all the hiding for free. - -Jeff - -- Jeff Mahoney SuSE Labs -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBHApyLPWxlyuTD7IRAgh5AJ9B6s2eaR1NMrmFDD/VKhZL5LTM2gCZAZXp FVF5Qk7PqXzkFFSDLszw3Os= =MioX -----END PGP SIGNATURE-----