From: Jeff Mahoney <jeffm@suse.com>
To: sirpj@ecs.csus.edu
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: Persistent module data
Date: Thu, 12 Aug 2004 20:25:22 -0400 [thread overview]
Message-ID: <411C0A72.5060009@suse.com> (raw)
In-Reply-To: <33598.128.115.223.147.1092244522.squirrel@gaia.ecs.csus.edu>
-----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-----
next prev parent reply other threads:[~2004-08-13 0:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-11 17:15 Persistent module data sirpj
2004-08-12 5:10 ` Swapnil Nagle
2004-08-13 0:25 ` Jeff Mahoney [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-08-12 14:47 sirpj
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=411C0A72.5060009@suse.com \
--to=jeffm@suse.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=sirpj@ecs.csus.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).