Unofficial Hacker News companion — get notified on comment replies, and more.

"This message has been on the screen for almost two hours now." (opens external site)

338 points by firloop 3 days ago | unsung.aresluna.org | 225 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (3)

  1. That's got nothing to do with cached data or corruption.
    Replies (1)
    1. File not being stored to disk after the application saves it has everything to do with cached data. It's exactly what this thread is about.
      Replies (1)
      1. Application should call sync() or equivalent and get a positive result before reporting to the user that the file was saved. If the OS hasn't actually written the bits to disk yet, or the disk controller has cached them but not written them, not much the application can do.

        But all of that is beside the point. What I said was that the application should do something sane if the cached data is missing or corrupt. Not that it should never lose data; that's impossible for any app to guarantee.