tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Journaling patches

On Wed, May 07, 2008 at 02:33:02AM +1000, Simon Burge wrote:
> Currently, we just use a bit in the fs_flags member of the ffs
> superblock.  One suggestion is to use a few of the reserved parts of
> the superblock (eg fs_sparecon64) to keep track of journal location
> information.  Maybe have:
>       int64_t fs_journalflags;
>       int64_t fs_journalloc0;
>       int64_t fs_journalloc1;

Maybe combine this with the to-be-added generation count on mount?
To detect write access to a filesystem after e.g. suspend-to-disk it
would be very nice if all writeable mounts would set a random value in
the superblock. On clean unmount it is set back to 0. This is different
from the dirty bit, which would be unset on suspend.


Home | Main Index | Thread Index | Old Index