* Handling sync system calls
@ 2006-05-10 11:25 Charles Manning
0 siblings, 0 replies; only message in thread
From: Charles Manning @ 2006-05-10 11:25 UTC (permalink / raw)
To: linux-fsdevel
Hi all
I have written a so-called "cechkpointing" mechanism for the YAFFS2 file
system that stores a snapshot of the fs structure in some spare flash. When
the filesystem gets remounted, this info replaces the normal scanning process
and thus significantly speeds up mounting.
At this stage I have managed to attach the "checkpoint" writting to put_super
so that the info is stored during a umount, but have had some problems trying
to do the same with getting this to work with a sync call.
I don't really want the checkpoint data to get written too often as this will
slow down the fs and cause extra flashh wear. I really only want it to happen
as part of an explicite sync().
I tried attaching the checkpointing to the write_super() and sync_fs()
methods, but these either caused writing more often than I needed, or nothing
happened because sb->s_dirt was not set.
As a final twist it would be really handy for the solution to work with both
2.4 and 2.6 kernels. A lot of embedded systems still run 2.4.x.
ANy pointers on how to proceed much appreciated.
Thanx
-- Charles
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-05-10 11:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-10 11:25 Handling sync system calls Charles Manning
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).