summaryrefslogtreecommitdiff
path: root/MoveStorage.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Shell no longer globs, so glob in pushBackContentsPaul Crowley2019-03-181-16/+16
| | | | | | | | Bug: 113246065 Bug: 123057215 Test: As described in b/113246065 comment 1 Change-Id: Id766773ed4abe80a9fc1d5305f099aedfe8eed90
* clang-format many files.Paul Crowley2018-09-181-13/+21
| | | | | Test: Format-only changes; treehugger suffices. Change-Id: I23cde3f0bbcac13bef555d13514e922c79d5ad48
* FBE devices now fully support adoptable storage.Jeff Sharkey2018-01-041-11/+12
| | | | | | | | | | | | | We've finished all the underlying work to support adoptable storage on FBE devices, so remove the code that was disabling it by default. To aid debugging, support blocking move commands (so that we log the stdout) via a system property, so we don't have to recompile end user devices stuck in funky states. Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.AdoptableHostTest Bug: 29923055, 25861755, 33252673, 37289651 Change-Id: I6b781de7e196a1a50ba543843aca0caf74c3e282
* Fix task memory leaks; better path validation.Jeff Sharkey2017-10-181-0/+264
We've been allocating task objects without freeing them, oops. We don't really need full classes for these tasks, so move them to blocking methods, and invoke them from a detached thread. Remove FIDTRIM support, which isn't meaningful on UFS-based flash devices. Modern devices require FBE/FDE which gives us better protection against trimmed data lingering around. Rename "Trim" to more generic "IdleMaint", since it'll soon extend to include custom F2FS optimization logic. Check for shady ".." when validating paths. Test: cts-tradefed run commandAndExit cts-dev -m CtsOsTestCases -t android.os.storage.cts.StorageManagerTest Test: cts-tradefed run commandAndExit cts-dev --abi armeabi-v7a -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.AdoptableHostTest Bug: 67041047 Change-Id: I4fb194c5d5ef13f413c02acedfbaaf79c567582b