Whamcloud - gitweb
AOSP: e2fsdroid: Refactor basefs allocation.
authorDavid Anderson <dvander@google.com>
Thu, 5 Dec 2019 20:23:12 +0000 (12:23 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 1 Jan 2020 18:41:34 +0000 (13:41 -0500)
commitdcbe79c4fa09f87983df09c82f006a455661c47c
tree178225d5947d6aecdac765997e9565a144628f77
parent269f4c1bc7ca2ecf1d2926d8153488570f8b266c
AOSP: e2fsdroid: Refactor basefs allocation.

This refactors base_fs_alloc_load() to address two issues. First, the
failure cases have been made simpler by factoring out a common helper
for freeing a base_fs_allocator. Second, we no longer return
EXIT_FAILURE, since this is not an errcode_t.

Bug: 145316683
Change-Id: I8b28c684ecf3423b605b550177d7ead4eb2821a4
From AOSP commit: b461ade872a809ab913d7506e9b8ed597d57dc87
contrib/android/basefs_allocator.c