History log of /system/vold/model/PublicVolume.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
17510259cc05e19c01c5faf516bcc8568e73023b 16-Feb-2018 Gao Xiang <gaoxiang25@huawei.com> Merge "mFusePid should be cleared after waitpid successfully" am: 456483d193 am: 8be3be3167
am: 8fe7f3104b

Change-Id: I18199ce5f972f0a403728e34dec608a01fceb183
37ba125205023b3b6e80ed684ca4d282224c66dc 19-Jan-2018 Jeff Sharkey <jsharkey@android.com> Add basic exFAT support.

Several partners have been requesting exFAT support. Android doesn't
natively support exFAT, but we're at least willing to try mounting an
exFAT filesystem if we detect the Linux kernel supports it, and if
helper binaries are present.

This CL is simple scaffolding, and it provides no actual
implementation of exFAT.

Test: builds, boots
Bug: 67822822
Change-Id: Id4f8ec3967b32de6e1c0e3c4b47fe6e43a6291ab
/system/vold/model/PublicVolume.cpp
3472e52fc259b6a549acece21d4901d99d6a421f 07-Oct-2017 Jeff Sharkey <jsharkey@android.com> Move to modern utility methods from android::base.

Moves away from crufty char* operations to std::string utility
methods, including android::base methods for splitting/parsing.

Rewrite of how Process handles scanning procfs for filesystem
references; now uses fts(3) for more sane traversal.

Replace sscanf() with new FindValue() method, also has unit tests.

Remove some unused methods. Switch almost everyone over to using
modern logging library.

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: I70dc512f21459d1e25b187f24289002b2c7bc7af
/system/vold/model/PublicVolume.cpp
49672b9351eb7e7f2bc655320aabd2fb6bd4c9d7 19-Sep-2017 Jeff Sharkey <jsharkey@google.com> Merge "Destroy vold socket interface completely."
cbe69fc060d021be972af44904dd76ed1aa2a5a2 16-Sep-2017 Jeff Sharkey <jsharkey@android.com> Destroy vold socket interface completely.

Long live Binder.

Test: yes
Bug: 13758960
Change-Id: If6be379b5a873f1b0c66dd1522b87413ad10fc46
/system/vold/model/PublicVolume.cpp
7bdf4d5a0f43f4073c87ff794f6efe91aa356b70 18-Sep-2017 Jeff Sharkey <jsharkey@android.com> Timeout if device isn't mounted.

If the invoked FUSE binary fails to mount the requested filesystem,
the dev_t won't actually change. To avoid getting waiting forever
and triggering the watchdog, timeout after 5 seconds.

Test: manually hang after fork and verify that we timeout
Bug: 65756209
Change-Id: I6ea5fd08ed14c72c1d7f7064bfd0d9ac81d4897b
/system/vold/model/PublicVolume.cpp
814e9d308e89b721e70025d3469b021b4ff10042 13-Sep-2017 Jeff Sharkey <jsharkey@android.com> Move unsolicited vold events to Binder.

Create IVoldListener and move most unsolicited vold events over to
this new interface. The remaining events will be routed through
method-specific listeners instead of a global one.

Move to upstream DISALLOW_COPY_AND_ASSIGN macro.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.DirectBootHostTest
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.AdoptableHostTest
Test: cts-tradefed run commandAndExit cts-dev -m CtsOsTestCases -t android.os.storage.cts.StorageManagerTest
Bug: 13758960
Change-Id: Ib9293487db2d525a76b9b9c2e9ac18d98601c6cf
/system/vold/model/PublicVolume.cpp
11c2d380a786d9e304416be98881b90b74ff666d 11-Sep-2017 Jeff Sharkey <jsharkey@android.com> Move even more vold commands over to Binder.

This moves fstrim, obb and appfuse commands over to the new Binder
interface. This change also separates creating/destroying and
mounting/unmounting of OBB volumes, which means they finally flow
nicely into the modern VolumeInfo/VolumeBase design.

We now generate unique identifiers for all OBB volumes, instead of
using a shady MD5 hash.

Change all "loop" and "dm" devices to tag the kernel resources with
a vold-specific prefix so that we can clean them up if vold crashes;
there are new destroyAll() methods that handle this cleanup.

Move appfuse mounting/unmounting into VolumeManager so it can be
shared. Move various model objects into a separate directory to
tidy things up.

Test: cts-tradefed run commandAndExit cts-dev -m CtsOsTestCases -t android.os.storage.cts.StorageManagerTest
Bug: 13758960
Change-Id: I7294e32b3fb6efe07cb3b77bd20166e70b66958f
/system/vold/model/PublicVolume.cpp