From mboxrd@z Thu Jan 1 00:00:00 1970 From: sirpj@ecs.csus.edu Subject: Persistent module data Date: Wed, 11 Aug 2004 10:15:22 -0700 (PDT) Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <33598.128.115.223.147.1092244522.squirrel@gaia.ecs.csus.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Return-path: Received: from hera.ecs.csus.edu ([130.86.71.150]:32209 "EHLO hera.ecs.csus.edu") by vger.kernel.org with ESMTP id S268115AbUHKRPX (ORCPT ); Wed, 11 Aug 2004 13:15:23 -0400 Received: from gaia.ecs.csus.edu (gaia.ecs.csus.edu [130.86.71.9]) by hera.ecs.csus.edu (8.12.8/8.12.8) with ESMTP id i7BHFNdC011657 for ; Wed, 11 Aug 2004 10:15:23 -0700 Received: from gaia.ecs.csus.edu (localhost [127.0.0.1]) by gaia.ecs.csus.edu (8.12.8/8.12.8) with SMTP id i7BHFMa5004004 for ; Wed, 11 Aug 2004 10:15:22 -0700 To: linux-fsdevel@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org 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. Thank You so much! Jenn