diff options
| author | David Anderson <dvander@google.com> | 2019-06-19 19:03:28 -0700 |
|---|---|---|
| committer | David Anderson <dvander@google.com> | 2019-06-20 13:39:11 -0700 |
| commit | 42a21a4438c573b0c3b5da4a4b7294c596753088 (patch) | |
| tree | 556751880aaf5f97c9653f08663a22fa8ee24e06 /libutils/Unicode.cpp | |
| parent | f78b8a4f95babdb5e12ecf1f034ccdc0dc39f8f9 (diff) | |
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
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions
