mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-20 13:27:17 +00:00

We try our best to check that the images the user select are too big for the selected drive as early as possible, but this probes to be problematic with certain compressed formats, like bzip2, which doesn't store any information about the uncompressed size, requiring a ~50s intensive computation as a minimum to find it out. For these kinds of formats, we don't perform an early check, but instead gracefully handle the case where the drive doesn't have any more space. This PR handles an `ENOSPC` error by displaying the alert orange ribbon, and prompting the user to retry with a larger drive. This is a huge improvement over the cryptic `EIO` error what was thrown before, and over having Etcher freeze at a certain percentage point. Change-Type: minor Changelog-Entry: Display a nice alert ribbon if drive runs out of space. See: https://github.com/resin-io/etcher/issues/571 Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>