diff options
author | David Anderson <dvander@google.com> | 2020-05-19 05:52:57 +0000 |
---|---|---|
committer | David Anderson <dvander@google.com> | 2020-05-19 18:48:10 +0000 |
commit | 42d676db4791838762d09cec8ac91491145e0b13 (patch) | |
tree | cf5c7d296ae082f5367e9e66e560a622cb0277dc /libutils/FileMap.cpp | |
parent | b510d2bff3cfc36bc6aabd63e26f4403904b9674 (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
Merged-In: Ie7ee70e31dff0809a5f0c402ed132d80dd03d9b1
Diffstat (limited to 'libutils/FileMap.cpp')
0 files changed, 0 insertions, 0 deletions