Linux-kernel mailing list archive 1998-10,: Re: s_last_mounted in EXT2

# Re: s_last_mounted in EXT2

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

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Roger Espel Llima: "Re: Idea: flink() and anon_open()"
- Previous message: Pavel Machek: "Re: 2GB physical memory on an Intel/Linux box"
- In reply to: Theodore Y. Ts'o: "Re: s_last_mounted in EXT2"
- Next in thread: Theodore Y. Ts'o: "Re: s_last_mounted in EXT2"
- Reply: Theodore Y. Ts'o: "Re: s_last_mounted in EXT2"

> 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

- Next message: Roger Espel Llima: "Re: Idea: flink() and anon_open()"
- Previous message: Pavel Machek: "Re: 2GB physical memory on an Intel/Linux box"
- In reply to: Theodore Y. Ts'o: "Re: s_last_mounted in EXT2"
- Next in thread: Theodore Y. Ts'o: "Re: s_last_mounted in EXT2"
- Reply: Theodore Y. Ts'o: "Re: s_last_mounted in EXT2"