Re: umount/mount uses old cache data in 2.1.46

Torsten Hentschel (Torsten.Hentschel@DInet.de)
Tue, 22 Jul 1997 00:09:00 +0200 (MET DST)


Hi Harald!

> > mke2fs -i 1024 /dev/sda13
>
> looks like /dev/sda13 is still mounted on /var/spool/news when typing this, right ?

No. mke2fs would complain about that.
while I did a mke2fs on /dev/sda13 the partition
/dev/sda11 was mounted on /var/spool/news.

The things I reproduced several times.

> that's BAD! never run e2fsck or mke2fs or similar on mouted partitions...
>
> > umount /var/spool/news # formerly /dev/sda11
> > ls /var/spool/news # - empty
> > mount -t ext2 /dev/sda13 /var/spool/news
> > ls /var/spool/news # - shows nearly all of the old
> > # directories; some as files some intact
> >
> > Are not all of the corresponding cache pages invalidated
> > when umounting?
>
> flushed! not invalidated... (you don't want to loose data when unmounting, do you?)
>
>
> Harald
> --
> All SCSI disks will from now on ___ _____
> be required to send an email notice 0--,| /OOOOOOO\
> 24 hours prior to complete hardware failure! <_/ / /OOOOOOOOOOO\
> \ \/OOOOOOOOOOOOOOO\
> \ OOOOOOOOOOOOOOOOO|//
> Harald Koenig, \/\/\/\/\/\/\/\/\/
> Inst.f.Theoret.Astrophysik // / \\ \
> koenig@tat.physik.uni-tuebingen.de ^^^^^ ^^^^^
>

-- 

Delta Internet http://www.DInet.de/ Tel. +49 2932 91 6 161 Zeit UmZuDenken! Fax. +49 2932 91 6 230