Re: ReiserFS file corruption

From: Hans Reiser (reiser@namesys.com)
Date: Tue Aug 07 2001 - 14:02:19 EST


Emmanuel Varagnat wrote:
>
> Today, I crashed the kernel and after reboot the source file
> I was working on, was completly unreadable. The size indicated
> by 'ls' seems to be good but with bad data.
>
> Is this behavior normal (because the FS seems correct) ?
> The worst I hoped is loosing the last save, but not everything.
>
> Must I patch to a newer version ?
> I'm using a 2.4.3 version.
>
> Thanks
>
> -Manu
>
> PS: Finally I greped the partition and recover my file.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/

If your editor rewrites the entire file with every small change (and it probably
does), then if you crash at the wrong moment you can corrupt the entire file.
If you use emacs or vi, it keeps a backup copy until the write is synced to disk
successfully.

You should definitely use 2.4.7, it is much better.

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



This archive was generated by hypermail 2b29 : Tue Aug 07 2001 - 21:00:46 EST