commit | 7996364d15f0b58810de2a78f7ec3b20585aae39 | [log] [tgz] |
---|---|---|
author | Paul Stewart <pstew@chromium.org> | Wed Jun 12 15:44:17 2013 -0700 |
committer | ChromeBot <chrome-bot@google.com> | Wed Jun 12 17:26:15 2013 -0700 |
tree | 72d2a8cf4439a91f9a9ea69d4b908dd7f136bb67 | |
parent | 7347bf2b466ae8058e47b29aaf0583390405d866 [diff] |
shill: KeyFileStore: Call fsync() during Flush() Call fsync() on the fd used to write out a key file. This ensures the bits end up on disk synchronously instead of waiting for some future time when the OS may choose to do so. This will provide some additional level of safety in situations where the system reboots unexpectedly. BUG=chromium:248632 TEST=Restart shill, ensure default.profile is written Change-Id: Id23bb6f136ef4fa2f97f8239efb6247ca49535e7 Reviewed-on: https://gerrit.chromium.org/gerrit/58447 Reviewed-by: Paul Taysom <taysom@chromium.org> Commit-Queue: Paul Stewart <pstew@chromium.org> Tested-by: Paul Stewart <pstew@chromium.org>