Re: Gnumeric file went south.



Zbigniew Chyla <cyba gnome pl> writes:

On Wed, 2001-06-13 at 23:10:27, Alan Eugene Davis wrote:

All my grades were in a gnumeric file, which file, partly due to
Gnumeric not having (AFAICT) a way to configure for backups at
periodic intervals, was lost when my disk filled up.  

This reminds me some idea. Currently all file savers in Gnumeric 
just overwrite the file while saving. If we can't save for some reason (lost
connection to file server, Gnumeric/OS crash, etc.), we loose the data (the
old file is overwritten and the new one is unusable). How about saving the
file to <tmp_prefix>-<file_name> and then (if everything is ok) renaming it?
I volunteer to implement this for most savers.

Good idea. I take it that tmp_prefix doesn't mean /tmp. For renaming
to protect against a full disk, the temp file has to be in the same file
system.

What about the case where user has write access to the file, but not
the directory it is in?

Regards

Jon Kåre





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