linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Persistent module data
@ 2004-08-11 17:15 sirpj
  2004-08-12  5:10 ` Swapnil Nagle
  2004-08-13  0:25 ` Jeff Mahoney
  0 siblings, 2 replies; 4+ messages in thread
From: sirpj @ 2004-08-11 17:15 UTC (permalink / raw)
  To: linux-fsdevel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: Persistent module data
@ 2004-08-12 14:47 sirpj
  0 siblings, 0 replies; 4+ messages in thread
From: sirpj @ 2004-08-12 14:47 UTC (permalink / raw)
  To: linux-fsdevel

Hi,

Thanks. Is there anyway to do it without user space interation though?
(Even if it is not the most desireable approach) I was thinking about
allocating my own inode, from whithin the FS code, for a disk block and
storing the data there... similar to what a journal does.

I was hoping there would be a better or easier way...?

Jenn

>One way is to write the data out to a character device and have a
>userspace program poll for it.

>Regards,
>Swapnil.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-08-13  0:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-11 17:15 Persistent module data sirpj
2004-08-12  5:10 ` Swapnil Nagle
2004-08-13  0:25 ` Jeff Mahoney
  -- strict thread matches above, loose matches on Subject: below --
2004-08-12 14:47 sirpj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).