New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 710711 link

Starred by 3 users

Issue metadata

Status: WontFix
Owner:
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

Encryption migration should try to free disk space before giving up.

Project Member Reported by fukino@chromium.org, Apr 12 2017

Issue description

Encryption migration can run if there are 10MB space.
However, some users might have less than 10MB.
Having less that 10MB is rare and critical condition, but still metrics shows some users are in this situation.

Calling cryptohome DoAutomaticFreeDiskSpaceControl API should make some space, and likely to make the available space more than 10MB (hopefully, more than 512MB)
Trying this API before asking the user to manually remove files should be better.
 

Comment 1 by uekawa@google.com, Apr 18 2017

we need cryptohome side change too to allow current user's cache deletion for migration.

Comment 2 by dspaid@chromium.org, Apr 18 2017

As long as DoAutomaticFreeDiskSpaceControl is called before the home directory is mounted for migration it will be cleaned up.  The check is only for whether the directory is mounted, not if the user has started the login process.

Comment 3 by uekawa@google.com, Apr 18 2017

Okay, we also talked about making cryptohome side more aggressive on deleting files to reduce migration time, this would impact cryptohome?



Comment 4 by dspaid@chromium.org, Apr 18 2017

Yes, in its current state it would be useful for making sure the minimum
amount of disk space is free, but will do very little to reduce general
migration time for most users.

Anything more agressive will either require changes to cryptohome (a new
API or new parameters for the existing API) or changes to the migration
login flow (first mount the user's directory normally and call internal
chrome browser cache cleanup APIs assuming they exist then remount for
migration).

Comment 5 by dspaid@chromium.org, Apr 19 2017

I've created b/37488582 to track skipping cached files during migration.  Note that this issue is still relevant as the migration won't start if there isn't a minimum amount of free space.

Comment 6 by dspaid@chromium.org, Apr 24 2017

Labels: ArcExt4Migration

Comment 7 by uekawa@chromium.org, May 17 2017

what's the next step?

Comment 8 by uekawa@google.com, May 18 2017

Status: WontFix (was: Assigned)
cryptohome already does this and nothing to do.

Sign in to add a comment