commit | a77939e368597241fe0153bedce196d7152a5de5 | [log] [tgz] |
---|---|---|
author | Gabe Black <gabeblack@chromium.org> | Tue Sep 09 23:35:08 2014 -0700 |
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | Tue Sep 23 02:15:50 2014 +0000 |
tree | 86ae4f5314a2fb6586f8722e2117f2fe80881554 | |
parent | b92cd2e0c4eb241eecffa6ad63efdd021a387f8b [diff] |
update_engine: Use utils::FileSize when finding the size of a file. The utils::FileSize funciton can find the size of a block device correctly. Use it instead of the adhoc methods used around the codebase. BUG=chromium:415867 TEST=Ran a butterfly-paladin tryjob with --hwtest. Change-Id: Id6fd37f04b136b4265bde9b1f56c379a5d9c30f9 Reviewed-on: https://chromium-review.googlesource.com/217418 Reviewed-by: Alex Deymo <deymo@chromium.org> Commit-Queue: Gabe Black <gabeblack@chromium.org> Tested-by: Gabe Black <gabeblack@chromium.org>