commit | 525c8bbc0825e0d09272e82e17855aa4b6e76710 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Tue Feb 07 18:44:37 2023 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Feb 07 18:44:37 2023 +0000 |
tree | 535b071009b3109570e84c700bb1a280554f2037 | |
parent | bb794847d40ba842e981d82a07b3287132bd4774 [diff] | |
parent | d3d6b84552c97c0fec9da6faa976fc08c8db336e [diff] |
Merge "UDC: Dm-Bow failed to load when size is not Multiple of 4096"
diff --git a/fs_mgr/fs_mgr.cpp b/fs_mgr/fs_mgr.cpp index 1c1ab48..742cdfa 100644 --- a/fs_mgr/fs_mgr.cpp +++ b/fs_mgr/fs_mgr.cpp
@@ -1176,6 +1176,10 @@ return false; } + // dm-bow will not load if size is not a multiple of 4096 + // rounding down does not hurt, since ext4 will only use full blocks + size &= ~7; + android::dm::DmTable table; auto bowTarget = std::make_unique<android::dm::DmTargetBow>(0, size, entry->blk_device);