Commit 3cf044b7 authored by Cody Schuffelen's avatar Cody Schuffelen
Browse files

Add a launcher -data_policy=resize_up_to mode.

This allows increasing the size of userdata.img from the launcher
without data loss. The implementation delegates to /sbin/e2fsck
and /sbin/resize2fs.

The blank_data_image_mb flag is reused to describe the desired size,
though the name doesn't fit perfectly. If the target size is smaller
than the current size, the resize will cause the launcher to fail. If
the target size is equal to the current size, the resize will not run.

Bug: 120573603
Test: Ran with -data_policy=resize_up_to with incrementally larger sizes
Change-Id: I432b4687215ec27806f985889f48beb78f9c5612
parent d915c8cd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment