diff options
author | David Anderson <dvander@google.com> | 2020-05-19 05:52:57 +0000 |
---|---|---|
committer | David Anderson <dvander@google.com> | 2020-05-19 06:02:37 +0000 |
commit | 0d2bcd4afe2f7b5fdda21059614da3daf0eb36e0 (patch) | |
tree | c82bd49fabaa2e7a3344617db0462c34bb407d5f /libutils/Unicode.cpp | |
parent | f3a570b891e1f7699ae10a385dadde5a681278f2 (diff) |
libsnapshot_test: Fix running on DSUs.
Because DSUs mount userdata via a fiemap, libfiemap has trouble creating
additional fiemaps on top of it. The complex stacking of dm-linear is
not supported. For other libfiemap tests we've hacked around this
limitation. If LpMetadata is in a folder named "test", we allow the
backing device search to stop at a dm node, whereas otherwise it would
need to stop at a physical device.
However this was not quite enough for vts_libsnapshot_test, because (1)
the test folder was not included in the pattern match, and (2)
CreateLogicalPartition() could not handle device-mapper names, as it
expects a named physical partition. Addressing both of these allows the
tests to pass on DSUs.
Bug: 156713441
Test: vts_libsnapshot_test on DSU
Change-Id: Ie7ee70e31dff0809a5f0c402ed132d80dd03d9b1
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions