Comment 89 for bug 317781

Revision history for this message
Theodore Ts'o (tytso) wrote :

@Volodymyr,

Oh, about your scenario --- the hiberate scripts *should* be doing a sync before putting your laptop to sleep, so you shouldn't be losing any files if the problem is failing to wake up after a hibernate. (Me, I'm still paranoid about whether the hibernation scripts work correctly, so I tend to quiesce the filesystem -- i.e., ^Z any compiles -- and manually run sync by hand.) In any case, if your only concern is crashes caused by hibernate, you should be OK --- again, assuming the hibernate are properly calling sync before going to sleep --- and if they aren't, that's a bug that should be fixed.

Your probability analysis also doesn't take into account the probability of a file write happening 45-120 seconds before the crash, using an application that isn't properly using fsync(), such that you lose a file that takes "hours" to recover. People to date have complained about state files written by desktop applications --- in some cases the failure is as simple as not remembering the size and position of the window where the application was last opened.