>________________________________ > From: Rob Weir <[email protected]> >To: [email protected] >Sent: Friday, 16 March 2012 9:29 AM >Subject: Re: Report a bug > >On Thu, Mar 15, 2012 at 4:28 PM, Hagar Delest <[email protected]> wrote: >> >> hi, >> >> See http://user.services.openoffice.org/en/forum/viewtopic.php?f=6&t=17677 >> >> But if you shut down the machine before it has ended all the processes, >> don't expect any application to do better. >> > >I've been thinking about this some. We're dealing with a complex >system of the user, the application, the operating system, the >hardware and the electrical power. Failure can happen at any point. >We manage to escape application crashes from setting your house on >fire. That wasn't always so in the history of computing. Failures >are generally limited, or at least engineers try their best. > >If power goes out during a save operation, three failures can >generally occur (and I'm speaking generally, not just about >OpenOffice): > >1) The user loses the data that was in memory but not yet written to disk. > >2) The user loses both the data that was in memory (current state of >the document) as well as the previous state of the document (the >version already on disk) >
I was not aware that the saved version could be lost simply because the document was open at the time of crash. I have occasionally shut the system down inadvertently while documents were open and have suffered no loss. Perhaps the operating system has that covered? >3) The user loses both versions of the document as well as corrupts >their file system causing other, totally unrelated files to be lost. > >Anyone remember #3, how things were 20 years ago? Hopefully OS >vendors have generally solved that problem. But I think we know how >to solve, or at least reduce problem #2. The trick is to reduce the >"window of vulnerability" for total loss by saving initially to a >temporary file, and only after the file is completely saved then >rename it. Since an OS-level rename operation is lighting fast, you >reduce your risk. And if power does go out during the rename >operation, modern OS's will know enough to rollback the file names so >you still have your temporary file in place. Then the app can check >for any temporary files when it loads and offer to restore them. > >So it is possible to do something reasonable here. Of course, in >case 1) above, auto backup is your friend. > Doesn't auto backup occur only when a document is being saved? <End of comments> Regards, Terry >> >> >> >>> Hi, >>> first, thank you for all the products of open office. >>> i want to tell you that when the file(.odt) is saving and if the computer >>> shute down(simultanesly), the file became empty when the computer is >>> restarted. >>> thank you again. >>> >> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
