diff options
author | David Anderson <dvander@google.com> | 2019-06-07 10:00:16 -0700 |
---|---|---|
committer | David Anderson <dvander@google.com> | 2019-06-11 14:04:46 -0700 |
commit | d5fa799f76f8d93b2d5a9aa0e2f14f12a6cf724a (patch) | |
tree | ffa2267063174db47193dc393290dd03a5e8b1b3 /init/modalias_handler.cpp | |
parent | e53417a8eef677c4dbfc87d8e4fb3d2df98ed1a0 (diff) |
libfiemap_writer: Handle dm stacking more accurately.
Right now we completely unwind a device-mapper stacking, but this will
produce incorrect results if the stack doesn't have a 1:1 block mapping.
For example, extents against a dynamic partition will be invalid if used
against the underlying block device (super). In this case, abort the
device-mapper unwinding early, and leave it to the caller to decide if
the device is valid.
In addition to fixing a potentially serious bug, this will allow us to
test gsid by simulating various device types (FBE vs FDE, for example).
Bug: 134536978
Test: fiemap_writer_test gtest
Change-Id: I8164e2b71c4868f5494e17e08d209b65fa0ed4ef
Diffstat (limited to 'init/modalias_handler.cpp')
0 files changed, 0 insertions, 0 deletions