Call sync after data is updated on login. |
|||||||
Issue descriptionBackground: There are a number of circumstances where the system is particularly vulnerable to hard power cut or kernel crash (see bug 455749 ). One is after login, especially on new account setup. Data is written to the profile but is cached for a long time before being written to disk. One repro case: 1: Powerwash, sign in. 2: Crash the kernel soon after sign in. This will trigger bug 455749 . This can never be completely 'fixed' but we can mitigate it. What we want to do: Once the bulk of filesystem operations are done on login we should issue a sync to flush everything to disk. The trick here is going to be in deciding exactly at what point to decide that we're "done".
,
Mar 4 2016
Typo sorry. Let me find a better component.
,
Mar 4 2016
,
Mar 8 2016
,
Mar 18 2016
+achuith fyi Proposed: https://codereview.chromium.org/1815853002/
,
Mar 22 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/7131ebe0af4b20c6b0d8c138733cf944094e5adb commit 7131ebe0af4b20c6b0d8c138733cf944094e5adb Author: xiyuan <xiyuan@chromium.org> Date: Tue Mar 22 19:22:07 2016 cros: Flush profile files at critical moments - Add a FileFlusher helper to flush files under a given dir; - Add ProfileHelper::FlushProfile to flush files for a given profile; - FlushProfile after a user profile is loaded and again after merge session; - FlushProfile if the signin profile is just created; - Commit local state change upon user session starts, oauth status and force online signin flag is changed; BUG= 592096 Review URL: https://codereview.chromium.org/1815853002 Cr-Commit-Position: refs/heads/master@{#382632} [add] https://crrev.com/7131ebe0af4b20c6b0d8c138733cf944094e5adb/chrome/browser/chromeos/base/file_flusher.cc [add] https://crrev.com/7131ebe0af4b20c6b0d8c138733cf944094e5adb/chrome/browser/chromeos/base/file_flusher.h [add] https://crrev.com/7131ebe0af4b20c6b0d8c138733cf944094e5adb/chrome/browser/chromeos/base/file_flusher_unittest.cc [modify] https://crrev.com/7131ebe0af4b20c6b0d8c138733cf944094e5adb/chrome/browser/chromeos/chrome_browser_main_chromeos.cc [modify] https://crrev.com/7131ebe0af4b20c6b0d8c138733cf944094e5adb/chrome/browser/chromeos/login/session/user_session_manager.cc [modify] https://crrev.com/7131ebe0af4b20c6b0d8c138733cf944094e5adb/chrome/browser/chromeos/profiles/profile_helper.cc [modify] https://crrev.com/7131ebe0af4b20c6b0d8c138733cf944094e5adb/chrome/browser/chromeos/profiles/profile_helper.h [modify] https://crrev.com/7131ebe0af4b20c6b0d8c138733cf944094e5adb/chrome/chrome_browser_chromeos.gypi [modify] https://crrev.com/7131ebe0af4b20c6b0d8c138733cf944094e5adb/chrome/chrome_tests_unit.gypi [modify] https://crrev.com/7131ebe0af4b20c6b0d8c138733cf944094e5adb/components/user_manager/user_manager_base.cc
,
Mar 22 2016
,
Jun 17 2016
verified on 8172.56.0/51.0.2704.103 with Peach-pi, Lars, Cyan, Big and others. |
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by zea@chromium.org
, Mar 4 2016