]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
AOSP: e2fsdroid: Skip Base FS entries that no longer exist.
authorDavid Anderson <dvander@google.com>
Sat, 7 Dec 2019 00:48:52 +0000 (16:48 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 1 Jan 2020 18:41:35 +0000 (13:41 -0500)
commit67467ea5d742b05f7f3ccbee87aaa65656685e0d
tree3b6b92f64613ca8c9f2bd8fb99eb5e2f25c8b5e7
parent0f3291fdf14f84e928930a671d41dd69d674b4ff
AOSP: e2fsdroid: Skip Base FS entries that no longer exist.

Don't reserve blocks in the base map if the file does not exist in the
target image. This can happen if a file is removed or renamed in between
two builds. If the removed file is quite large, skipping it is important
since otherwise it will prevent blocks from being allocated for new files.

Bug: 145316683
Test: e2fsdroid with dynamic partitions
Change-Id: I63a9372c58adeaae3e1235fd92fed78a284ed391
From AOSP commit: 2b6646a3d2a7dd9972275cb829239ae033762da5
contrib/android/basefs_allocator.c
contrib/android/basefs_allocator.h
contrib/android/e2fsdroid.c