Re: Gnumeric file went south.
- From: Jon K Hellan <hellan acm org>
- To: Zbigniew Chyla <cyba gnome pl>
- Cc: Alan Eugene Davis <adavis saipan com>, gnumeric-list gnome org
- Subject: Re: Gnumeric file went south.
- Date: 13 Jun 2001 20:01:05 +0200
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]