Re: s_last_mounted in EXT2

Jakub Jelinek (jj@sunsite.ms.mff.cuni.cz)
Tue, 10 Mar 1998 12:43:34 +0100 (MET)


> It's probably best to do it at mount time, actually. We have the
> information then, and we have to write out the superblock anyway to mark
> it as unclean (so that it's properly marked as unclean if we crash
> without unmounting it).

You don't. d_path on sb->s_root at ext2_setup_super gives you always /.
You need either to wait till d_mount is done (and thus need to add
note_last_mounted) or pass the directory name to read_super.
I don't know which solution is better, I'd prefer note_last_mounted, but
would like to know which way to go.

Cheers,
Jakub
___________________________________________________________________
Jakub Jelinek | jj@sunsite.mff.cuni.cz | http://sunsite.mff.cuni.cz
Administrator of SunSITE Czech Republic, MFF, Charles University
___________________________________________________________________
Ultralinux - first 64bit OS to take full power of the UltraSparc
Linux version 2.1.89 on a sparc64 machine (498.80 BogoMips).
___________________________________________________________________

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu