Re: ReiserFS file corruption

Hans Reiser (reiser@namesys.com)
Tue, 07 Aug 2001 23:02:19 +0400


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/