Commit 596f709f authored by David Munro's avatar David Munro Committed by Commit Bot

crostini: Update size estimates for download and disk usage when installing.

Bug: None
Test: CQ
Change-Id: I3ed71c53de6108fbf096202e0d2d8b06f27fa0fe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1994842Reviewed-by: default avatarDavid Munro <davidmunro@google.com>
Reviewed-by: default avatarTimothy Loh <timloh@chromium.org>
Auto-Submit: David Munro <davidmunro@google.com>
Commit-Queue: David Munro <davidmunro@google.com>
Cr-Commit-Position: refs/heads/master@{#731740}
parent cfaf0112
......@@ -16,14 +16,16 @@ class CrostiniInstallerUIDelegate {
public:
// The size of the download for the VM image.
// TODO(timloh): This is just a placeholder.
static constexpr int64_t kDownloadSizeInBytes = 300 * 1024 * 1024;
// The minimum feasible size for a VM disk image.
// As of 2020-01-10 the Termina files.zip is ~90MiB and the squashfs container
// is ~330MiB.
static constexpr int64_t kDownloadSizeInBytes = 450 * 1024 * 1024; // 450 MiB
// As of 2020-01-10 Crostini once installed uses ~1.8GiB, and metrics show
// that install success rate plummets when users have less than that much free
// space.
static constexpr int64_t kMinimumDiskSize =
1ll * 1024 * 1024 * 1024; // 1 GiB
// Minimum amount of free disk space to install crostini successfully.
static constexpr int64_t kMinimumFreeDiskSpace =
crostini::CrostiniInstallerUIDelegate::kDownloadSizeInBytes +
kMinimumDiskSize;
1.8l * 1024 * 1024 * 1024; // 1.8 GiB
static constexpr int64_t kMinimumFreeDiskSpace = kMinimumDiskSize;
// |progress_fraction| ranges from 0.0 to 1.0.
using ProgressCallback =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment