summaryrefslogtreecommitdiff
path: root/jni/FuseUtilsTest.cpp
AgeCommit message (Collapse)Author
2024-12-03Modify FuseDaemon#DeriveVolumeName to better handle invalid paths. “riyaghai”
Test: atest FuseUtilsTest.cpp Bug: 378021978 Flag: EXEMPT, bug fix Change-Id: I66c05397a1350c3fd1af52218f803e1202ed9b3d
2021-12-02Fix build warnings Alessio Balsini
Remove some nits and obsolete declarations to fix all the compiler warnings. Bug: 202785178 Test: m Signed-off-by: Alessio Balsini <balsini@google.com> Change-Id: I0407bafbb0b3f66887ac163dba441285a58ca26d
2021-09-24Change containsMount() to look for any user-id. Martijn Coenen
On devices with app cloning, we may be responsible for storage paths that represent a different user-id than the one that we are running as. Change containsMount() to accept any user-id. Bug: 200134631 Test: TEST_MAPPING, atest FuseUtilsTest Change-Id: I4387beeed5925b9e43c4f45d0f5e9ed2f6a196d5
2020-07-10Ignore case when checking if a given path contains mount. Corina
We used to check this on the node's build path, which should always have the correct case (changed in I84ec47ef6c5272f476ae4c8d63d21be0aa268db9). However, there is a small chance that path can also end up with different lower/upper case. Having the string comparison ignore case works in all cases. Bug: 160853399 Test: atest FuseUtilsTest && atest --iterations 100 ScopedStorageHostTest#testCaseInsensitivity Change-Id: I0ae1aa6b5e619ba1345442a65d15a5f3fd6b1f37
2020-06-23Match mounted paths using string comparisons instead of regex. Corina
BUG: 158067533 Test: atest FuseUtilsTest Change-Id: I209c24e553329f77fdf76589bcbf3f502369fba4