mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-11-23 18:14:25 +08:00
b7343ebb63
There are a number of error conditions which, due to the way ext2fs_dir_iterate2 operates, would not be propagated to the upper layers of the call stack. As a result, certain error conditions, such as not having enough room to allocate blocks for SELinux labels, would fail silently, instead of causing a compile failure. As suggested in https://android-review.googlesource.com/c/platform/external/e2fsprogs/+/324363 , add a error field to the caller's private data structure, and use the bit in the field to indicate an error condition. Now, certain errors which were silently ignored will cause a compile failure when compiling Android. Test: Artifically modify selabel_lookup() to return a failure, and verify Android doesn't compile. Test: Verify Android compiles under normal circumstances. Test: Artifically modify ino_add_xattr() to return a failure, and verify Android doesn't compile. Bug: 117502873 Bug: 117567573 Bug: 117473440 Signed-off-by: Theodore Ts'o <tytso@mit.edu> Change-Id: Icdb0105a77e98c3428f20d3c59bf824dcad5db8d From AOSP commit: 7ca13b8b2953f93536ea09eb2ff19bd7cc85b3c1 |
||
---|---|---|
.. | ||
Android.bp | ||
base_fs.c | ||
base_fs.h | ||
basefs_allocator.c | ||
basefs_allocator.h | ||
block_list.c | ||
block_list.h | ||
block_range.c | ||
block_range.h | ||
e2fsdroid.c | ||
ext2simg.c | ||
fsmap.c | ||
fsmap.h | ||
perms.c | ||
perms.h |