commit | a0220a5bd410d4b342ee1ca84e8381d6bc5f468e | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Mon Apr 03 17:11:45 2017 -0600 |
committer | Jeff Sharkey <jsharkey@android.com> | Mon Apr 03 17:13:06 2017 -0600 |
tree | d069d4386aff57729fc820e3f468e82eb8f2295d | |
parent | fd3dc3c076f30e19e7ac902ba0531c6bcfe2e042 [diff] |
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: 27590986, 36840579 Change-Id: I77c63e259356824cc75a3adcf3f4af567efdc7aa