android_system_core/fs_mgr/libfiemap_writer
David Anderson 1bfcd580c8 libfiemap_writer: Improve device unwrapping to support simple linear devices.
Normally we reject complex dm targets that would invalidate or shift the
block mappings returned via FIEMAP/FIBMAP. Currently the only targets
allowed are crypt, default-key, and bow. This patch adds support for
"linear" as long as there is only one linear target and it targets
sector 0 of the underlying block device.

This is useful for testing gsid, so we can simulate how a
metadata-encrypted device works without having to create a dm-crypt or
dm-default-key node.

Bug: 134536978
Test: manual test
Change-Id: I7c12bc20d95ff4c90402e66bafb4cf2fce7818e2
2019-06-20 13:39:11 -07:00
..
include/libfiemap_writer libfiemap_writer: Handle dm stacking more accurately. 2019-06-11 14:04:46 -07:00
testdata fiemap_writer: First cut implementation with write() support. 2018-12-29 11:11:30 -08:00
.clang-format fiemap_writer: First cut implementation with write() support. 2018-12-29 11:11:30 -08:00
Android.bp libfiemap_writer: Handle dm stacking more accurately. 2019-06-11 14:04:46 -07:00
Android.mk Fix ART build bustage. 2019-04-09 23:50:11 +00:00
AndroidTest.xml Add fiemap_writer_test to VTS. 2019-03-22 20:48:20 +00:00
fiemap_writer.cpp libfiemap_writer: Improve device unwrapping to support simple linear devices. 2019-06-20 13:39:11 -07:00
fiemap_writer_test.cpp Add fiemap_writer_test to VTS. 2019-03-22 20:48:20 +00:00
split_fiemap_writer.cpp libfiemap_writer: Fix the progress bar on VFAT partitions. 2019-03-13 13:58:12 -07:00
utility.cpp Support FiemapWriters that extend across multiple files. 2019-03-04 10:08:55 -08:00
utility.h Support FiemapWriters that extend across multiple files. 2019-03-04 10:08:55 -08:00