[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File corruption



At 08:40 7-8-2001 -0700, Larry Altneu wrote:
>I am experiencing a problem that results in corruption of the data for a
>freshly written file. It is very reproducible by creating and saving a file
>with vi and then pulling the plug on the system. When it comes back up, the
>file exists with the proper size but it contains all zeros. Any guidance
>would be appreciated.

Vi truncates the file and does not overwrite the file. This happens with 
all programs that truncate the file before writing to it.

There was a thread about this behaviour a while ago (1-2 months). You might 
try searching that.

Cheers

--
Seth
Every program has two purposes one for which
it was written and another for which it wasn't
I use the last kind.