No description
Find a file
Henrik Baard 7f52bca485 Migrating data sometimes leaves emulated unmounted
Sometimes migrating data fails to mount the target
volume after operation is finished.

MoveTask is running in its own thread, copying data
between external card and internal memory.

After copying the data the method "bringOnline" is
run. This method destroys and creates the volumes.

When VolumeBase::create() is run it will notify
MountService, who upon receiving this notification
will send a mount command to mount the new primary
storage.

This command will sometimes run before
setState(State::kUnmounted); is called on the newly
created volume. This will cause the mount command to
fail.

VoldConnector: SND -> {10 volume mount emulated 3 -1}
vold : emulated flags change requires state unmounted or unmountable
vold : emulated user change requires state unmounted or unmountable
vold : emulated mount requires state unmounted or unmountable

Lock bringOnline so no volume commands will be processed
until volumes are (re-)created and have correct state.

Bug: 26322200
Change-Id: I4aba85c226d904c42ae9edcdfec21619218939d6
2016-07-06 15:42:34 -06:00
bench Fix copy/paste error in benchmark code. 2016-07-06 14:34:43 -06:00
fs resolve merge conflicts of b7d5a47cec to master. 2015-12-04 17:55:33 -08:00
tests Remove superfluous OpenSSL include paths. 2015-01-22 16:45:28 -08:00
Android.mk Use libbootloader_message. 2016-06-29 16:50:05 -07:00
Asec.h Add in ext4 support for ASEC containers 2012-04-25 14:15:15 -07:00
AutoCloseFD.h Use android-base logging not cutils in secdiscard 2016-01-12 10:03:05 +00:00
Benchmark.cpp Track rename from base/ to android-base/. 2015-12-04 15:50:53 -08:00
Benchmark.h Trim both internal and adopted private storage. 2015-07-01 15:53:51 -07:00
BenchmarkGen.h Fix copy/paste error in benchmark code. 2016-07-06 14:34:43 -06:00
CheckBattery.cpp Make vold compile with -Werror -Wall. 2014-12-18 00:21:21 +00:00
CheckBattery.h On low power turn off rather than rebooting to allow device to charge 2014-06-09 15:15:32 -07:00
CleanSpec.mk Add an empty CleanSpec.mk 2010-03-08 18:05:25 -08:00
CommandListener.cpp Add log flag for verbose AppFuse log for nyc-dev. 2016-04-07 14:59:32 +09:00
CommandListener.h Mount appfuse in process namespace. 2016-02-02 18:56:19 +09:00
CryptCommandListener.cpp Revert "Add fileencrypted=software/ice to fstab options" 2016-05-23 15:05:51 -07:00
CryptCommandListener.h Prefer bool returns to int throughout 2016-02-09 10:11:42 +00:00
cryptfs.c Use libbootloader_message. 2016-06-29 16:50:05 -07:00
cryptfs.h Set encryption mode in mode file 2016-05-27 09:40:37 -07:00
Devmapper.cpp vold: fix 64 bit ioctl error 2015-10-21 11:16:19 +08:00
Devmapper.h vold: fix 64 bit ioctl error 2015-10-21 11:16:19 +08:00
Disk.cpp Merge "Print size as unsigned when sending to framework." into nyc-dev 2016-03-11 00:07:25 +00:00
Disk.h Trim both internal and adopted private storage. 2015-07-01 15:53:51 -07:00
EmulatedVolume.cpp Unmount emulated filesystems before killing the fuse process. 2016-01-26 10:05:15 +00:00
EmulatedVolume.h Let's reinvent storage, yet again! 2015-06-25 22:40:08 -07:00
Ext4Crypt.cpp Stop dropping caches now we have kernel fix 2016-06-22 09:24:51 -07:00
Ext4Crypt.h Revert "Add fileencrypted=software/ice to fstab options" 2016-05-23 15:05:51 -07:00
hash.h vold: Bugfixes & cleanups 2010-03-13 16:42:19 -08:00
Keymaster.cpp Support Keymaster2 with lots of clever template logic :) 2016-03-17 10:56:24 -07:00
Keymaster.h Support Keymaster2 with lots of clever template logic :) 2016-03-17 10:56:24 -07:00
KeyStorage.cpp Use a longer timeout on the disk encryption keys 2016-04-27 12:58:41 -07:00
KeyStorage.h Run clang-format over ext4crypt related code 2016-03-09 09:34:13 -08:00
Loop.cpp vold: fix 64 bit ioctl error 2015-10-21 11:16:19 +08:00
Loop.h vold: fix 64 bit ioctl error 2015-10-21 11:16:19 +08:00
main.cpp Refactor now that global DE has been reworked 2016-02-09 10:11:42 +00:00
MoveTask.cpp Migrating data sometimes leaves emulated unmounted 2016-07-06 15:42:34 -06:00
MoveTask.h Migrate primary external storage. 2015-04-24 16:08:07 -07:00
NetlinkHandler.cpp Remove obsolete code for monitoring USB status 2011-06-07 08:34:08 -07:00
NetlinkHandler.h system: vold2: Initial skeleton for vold2. 2009-10-10 17:57:51 -07:00
NetlinkManager.cpp Progress towards dynamic storage support. 2015-03-30 19:46:31 -07:00
NetlinkManager.h system: vold2: Initial skeleton for vold2. 2009-10-10 17:57:51 -07:00
PrivateVolume.cpp resolve merge conflicts of b7d5a47cec to master. 2015-12-04 17:55:33 -08:00
PrivateVolume.h Add f2fs support for private volumes. 2015-06-08 20:21:25 -07:00
Process.cpp Kill apps using storage through bind mounts. 2015-10-21 15:05:49 -07:00
Process.h Kill apps using storage through bind mounts. 2015-10-21 15:05:49 -07:00
PublicVolume.cpp Unmount public sdcard filesystems before killing the fuse process. 2016-04-19 22:34:52 +00:00
PublicVolume.h Let's reinvent storage, yet again! 2015-06-25 22:40:08 -07:00
ResponseCode.cpp vold: Switch from LOG -> SLOG 2010-03-25 08:02:28 -07:00
ResponseCode.h Trim both internal and adopted private storage. 2015-07-01 15:53:51 -07:00
ScryptParameters.cpp Add scrypt-based password stretching. 2016-02-10 14:07:59 +00:00
ScryptParameters.h Add scrypt-based password stretching. 2016-02-10 14:07:59 +00:00
secdiscard.cpp Use android-base logging not cutils in secdiscard 2016-01-12 10:03:05 +00:00
secontext.cpp cryptfs: run e2fsck/fsck.f2fs in fsck domain 2016-02-01 12:59:59 -08:00
secontext.h cryptfs: run e2fsck/fsck.f2fs in fsck domain 2016-02-01 12:59:59 -08:00
sehandle.h Set SELinux contexts on device nodes created by vold. 2014-09-30 15:35:28 -04:00
TrimTask.cpp Track rename from base/ to android-base/. 2015-12-04 15:50:53 -08:00
TrimTask.h Trim both internal and adopted private storage. 2015-07-01 15:53:51 -07:00
Utils.cpp Consistent creation/destruction of user data. 2016-04-15 13:47:52 -06:00
Utils.h Consistent creation/destruction of user data. 2016-04-15 13:47:52 -06:00
vdc.cpp Allow callers to prepare CE/DE user storage. 2016-02-05 13:03:52 -07:00
vdc.rc Don't start defaultcrypto twice 2016-04-18 15:39:04 -07:00
vold.rc Move vold (and sdcard childs) to foreground cpuset. 2016-04-15 14:30:40 +02:00
VoldCommand.cpp system: vold2: Initial skeleton for vold2. 2009-10-10 17:57:51 -07:00
VoldCommand.h system: vold2: Initial skeleton for vold2. 2009-10-10 17:57:51 -07:00
VoldUtil.c Fixed type mismatch for ioctl(BLKGETSIZE) 2015-03-30 11:28:11 -07:00
VoldUtil.h Fixed type mismatch for ioctl(BLKGETSIZE) 2015-03-30 11:28:11 -07:00
VolumeBase.cpp Track rename from base/ to android-base/. 2015-12-04 15:50:53 -08:00
VolumeBase.h Add method to forget private partition keys. 2015-06-22 14:04:54 -07:00
VolumeManager.cpp Support emulator's virtio-blk based SD card 2016-03-08 12:19:41 -08:00
VolumeManager.h vold: fix 64 bit ioctl error 2015-10-21 11:16:19 +08:00