Re: [Patch] Cleanup struct gendisk registration, 2.3.40-pre1

From: Pavel Machek (pavel@suse.cz)
Date: Mon Jan 17 2000 - 11:13:05 EST


Hi!

> > > Erm... You know a way to fsck root without mounting it?
> >
> > [ Note: I said _fdisk_, not fsck. Completely different things. Fsck is
> > another alias issue, though, so I'll give you an answer anyway, even
> > though this is not the same issue we were discussing ]
> >
> > It doesn't matter.
> >
> > You CANNOT synchronize that case anyway, and you should just realize that
> > and not even try too hard.
> >
> > Hint: the buffer cache is the _least_ of your worries. You have the inode
> > cache and dcache already populated, and whatever you do to the buffer
> > cache will have absolutely no impact on them at all.
> >
> > To be strictly safe, we should just do a complete unmount/remount after
> > the fsck, not just what we do now (ie a "remount" without the umount). It
> > hasn't ever bitten us in real use, though.
>

[I was not clear enough]

> It is consistently biting me.
>
> Case: I was editing file /tmp/foo before the crash.
>
> fsck is running and decides to kill /tmp/foo.
>
> But I'm clever. I do cat /tmp/foo from other console. That way I can

(I do this cat _while_ fsck is running, so that system caches up /tmp/foo).

> cat /tmp/foo > /tmp/bar and recover it.

(I do this cat after remount read/write, so that I've place where to
store it.)
                                                                Pavel

-- 
The best software in life is free (not shareware)!		Pavel
GCM d? s-: !g p?:+ au- a--@ w+ v- C++@ UL+++ L++ N++ E++ W--- M- Y- R+

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jan 23 2000 - 21:00:16 EST