OSDN Git Service

Abort migration early when not enough space.
authorJeff Sharkey <jsharkey@android.com>
Mon, 3 Apr 2017 23:11:45 +0000 (17:11 -0600)
committerJeff Sharkey <jsharkey@android.com>
Mon, 3 Apr 2017 23:13:06 +0000 (17:13 -0600)
commita0220a5bd410d4b342ee1ca84e8381d6bc5f468e
treed069d4386aff57729fc820e3f468e82eb8f2295d
parentfd3dc3c076f30e19e7ac902ba0531c6bcfe2e042
Abort migration early when not enough space.

Otherwise we potentially waste minutes of the users time copying
data that will never fit.

Also fix bug around storage calculation.  It's confusing, but f_bsize
is not the value you're looking for; the real block size is f_frsize.

Test: builds, boots
Bug: 2759098636840579
Change-Id: I77c63e259356824cc75a3adcf3f4af567efdc7aa
MoveTask.cpp
Utils.cpp