Enable libsnapshot to export the size of the COW image, representing the
fraction of the COW device that is temporarily created in the /data
partition, computed just before initializing a merge operation.
Thise additional information can be used by other components (i.e.,
update engine) to enrich Virtual A/B metrics.
Bug: 154016862
Test: manual OTA
Signed-off-by: Alessio Balsini <balsini@google.com>
Change-Id: I4faa0785f23884e26161e0d51268dd7a305d86bf
am skip reason: Change-Id Ie49975b8949fd12bbde14346ec9bbb774ef88a51 with SHA-1 bff51b88aa is in history
Change-Id: I30f9950c043a05750e54fe6b24c2952f995bae93
am skip reason: Change-Id Ie49975b8949fd12bbde14346ec9bbb774ef88a51 with SHA-1 bff51b88aa is in history
Change-Id: I61a42091b2c04c0857526c15d42c1cc51aa5ca19
am skip reason: Change-Id Ie49975b8949fd12bbde14346ec9bbb774ef88a51 with SHA-1 68604b9c29 is in history
Change-Id: Ic56db1c7f86b07d9798b2c1362364082a416d72b
am skip reason: Change-Id Ie49975b8949fd12bbde14346ec9bbb774ef88a51 with SHA-1 bff51b88aa is in history
Change-Id: I2d17f7f57421b14fbdc310dec06f943f9544d6cf
am skip reason: Change-Id Ie49975b8949fd12bbde14346ec9bbb774ef88a51 with SHA-1 68604b9c29 is in history
Change-Id: Id35ba0569b03f3aef6cc925baca29d4f5d649765
am skip reason: Change-Id Ie49975b8949fd12bbde14346ec9bbb774ef88a51 with SHA-1 68604b9c29 is in history
Change-Id: I551c96f010fa5c7b269681002312d2cd38b2aac0
am skip reason: Change-Id Ie49975b8949fd12bbde14346ec9bbb774ef88a51 with SHA-1 bff51b88aa is in history
Change-Id: I3f8b8eb76f73f6b39971f2399f90c1225a136398
am skip reason: Change-Id Ie49975b8949fd12bbde14346ec9bbb774ef88a51 with SHA-1 68604b9c29 is in history
Change-Id: I191153e6bd3e904a1f23b363fa28b9ec3c5bcbe0
am skip reason: Change-Id Ie49975b8949fd12bbde14346ec9bbb774ef88a51 with SHA-1 68604b9c29 is in history
Change-Id: I7eaaa53f408d2c1b2e7ea4c85b55c32e3361ad9e
Instead of aborting when FileMap::create detects an overflow, detect the
overflow directly and fail the call.
Bug: 156997193
Test: Ran unit tests, including new unit test that aborted before.
Merged-In: Ie49975b8949fd12bbde14346ec9bbb774ef88a51
Change-Id: Ie49975b8949fd12bbde14346ec9bbb774ef88a51
(cherry picked from commit 68604b9c29)
am skip reason: Change-Id I3e10f66aecfcd48bdb9ebf1d304b7aae745cbd3c with SHA-1 c631f94c77 is in history
Change-Id: I6f24f3f302882d7cf2a63eee8eee2777038e79c4
am skip reason: Change-Id I3e10f66aecfcd48bdb9ebf1d304b7aae745cbd3c with SHA-1 c631f94c77 is in history
Change-Id: I14ad4bc3f8b9dc086cb26775a97734530942464a
am skip reason: Change-Id I3e10f66aecfcd48bdb9ebf1d304b7aae745cbd3c with SHA-1 a2cc1ebb72 is in history
Change-Id: Ibabb9415fc925a19385d2aa4289ef9b04525bb55
am skip reason: Change-Id I3e10f66aecfcd48bdb9ebf1d304b7aae745cbd3c with SHA-1 c631f94c77 is in history
Change-Id: Icb1685e24500dc2b54b99f8d741c02f11b179669
am skip reason: Change-Id I3e10f66aecfcd48bdb9ebf1d304b7aae745cbd3c with SHA-1 c631f94c77 is in history
Change-Id: I9713467c0e2c9429eeffee88263b981e71e42f7a
am skip reason: Change-Id I3e10f66aecfcd48bdb9ebf1d304b7aae745cbd3c with SHA-1 a2cc1ebb72 is in history
Change-Id: I5a86a4f57768c81ee7812453f4e479d35bde8065
am skip reason: Change-Id I3e10f66aecfcd48bdb9ebf1d304b7aae745cbd3c with SHA-1 c631f94c77 is in history
Change-Id: I600a93630d381239f6630ab484360e5da42bcaeb
am skip reason: Change-Id I3e10f66aecfcd48bdb9ebf1d304b7aae745cbd3c with SHA-1 a2cc1ebb72 is in history
Change-Id: I05d8491a4238ac4c8c91305f2c4b4bbaf57b7822
am skip reason: Change-Id I3e10f66aecfcd48bdb9ebf1d304b7aae745cbd3c with SHA-1 a2cc1ebb72 is in history
Change-Id: Ib85cadc0fc64c4d4635202468c8f01fe2047bdc1
Currently the ReadDefaultFstab function, which calls GetFstabPath,
makes some assumptions about what the fstab will be called and where
it is located. This is being used by vold to set up userdata encryption
and for gsid, and is even used in the default boot control HAL, so it
has become quite baked.
The original way for a board to specify things to mount was to use the
"mount_all /path/to/fstab" command in init.rc. However, due to the
above functionality, the path after mount_all is no longer very useful,
as it cannot differ from the inferred path, or userdata encryption and
other features will be broken.
On Cuttlefish, we have an interest in being able to test alternative
userdata configurations (ext4 vs f2fs, encryption on/off, etc.) and
currently the only way to achieve this is to either a) modify the
ro.hardware or ro.hardware.platform properties, which breaks a bunch
of things like default HAL filenames, or regenerate our odm.img or
vendor.img filesystems. We can't simply install another fstab and
point to it with "mount_all".
This change allows the fstab path to be omitted from "mount_all", and
adds another property which overrides the existing checks for
fstab.${ro.hardware} and fstab.${ro.hardware.platform}. Specifying
${ro.boot.fstab_suffix} will cause fstab.${ro.boot.fstab_suffix}
to be checked first.
Bug: 142424832
Test: booted cuttlefish with 'mount_all ${ro.hardware} --late'
Test: booted cuttlefish with 'mount_all --late'
Test: booted cuttlefish with 'mount_all --late' and fstab_suffix=f2fs
Test: partially booted cuttlefish with 'mount_all ${ro.hardware}'
Test: partially booted cuttlefish with 'mount_all'
Change-Id: I3e10f66aecfcd48bdb9ebf1d304b7aae745cbd3c
Merged-In: I3e10f66aecfcd48bdb9ebf1d304b7aae745cbd3c
This was a typo; the enum corresponds to the result of the 'Filter'
function, not the 'FlushTo' function.
Test: build
Change-Id: Ib46f0646570b6dbaac17ae9fc95c990128cdbe72