- 15 Aug, 2014 1 commit
-
-
Robert Chiras authored
(full-disk: no partitions) In Android, Vold recognizes a USB drive having a full-disk file system and mounts it properly, but when the drive is removed from system Vold won't unmount the device. This is because Vold only unmounts partitions. For a FAT32 USB drive (with partitions), kernel will create two devices: sda (disk device) and sda1 (partition device). When the drive is removed, Vold will receive two netlink events: one for partition remove (sda1) and one for disk remove (sda). The unmount occurs only when partition remove event is received. For a full-disk FS USB drive, kernel will only create one device: sda (disk device). When the drive is removed, Vold will only receive one netlink event for disk remove (sda) and it won't unmount the device. This patch will verify if there is a currently mounted device when disk remove event is received and will perform unmount, to properly unmount the device. Change-Id: I4866ab2482fddfb40a8fc73083f31df846bbb24f Signed-off-by:
Robert Chiras <robert.chiras@intel.com>
-
- 25 Jul, 2014 1 commit
-
-
Cylen Yao authored
Initialize mIsDecrypted to prevent from formatting SD failure Change-Id: I30851e6b01b0999bf0b8c1e4b8e3f3a976a41ad1 Signed-off-by:
Cylen Yao <cylen.yao@mediatek.com> (cherry picked from commit 5dbcbd03149af50db42dadeebf565333ce399182)
-
- 16 May, 2014 1 commit
-
-
Cylen Yao authored
Add support for the storage with non-sequential partition index Ex: if using extended partition, the index of the partition will be greater than 5 [toddpoynor@google.com: fixup mPendingPartCount data type] Change-Id: I5dbc870fbaac24045f5b994fcb899d5df73c6a55
-
- 05 May, 2014 1 commit
-
-
Octavian Purdila authored
Switching the kernel to the new sysfs layout (unselecting CONFIG_SYSFS_DEPRECATED) complicates VolD block device recognition. The uevents are reporting full specific paths, such as: /devices/pci0000:0e/0000:0e:18.0/mmc_host/mmc0/mmc0:1234/block/mmcblk0 Because the full device path may contain variable IDs (in this MMC case "1234") using full path entries in fstab does not work. Android supports partial matches but only as a prefix at the beginning of the path. This patch adds support for matching shell wildcard patterns via fnmatch(). The prefix matching rule is preserved, but if it is detected a warning is issued. Change-Id: Ia0c5eddec06bd71bec6ce838be3b5345278e0bab Author: Octavian Purdila <octavian.purdila@intel.com> Signed-off-by:
Radu Moisan <radu.moisan@intel.com> Signed-off-by:
Jim Bride <jim.bride@intel.com> Reviewed-by:
Bergeron, Michael <michael.bergeron@intel.com> Tested-by:
Uyyala, Sridhar <sridhar.uyyala@intel.com> Reviewed-by:
Leung, Daniel <daniel.leung@intel.com> Reviewed-by:
Uyyala, Sridhar <sridhar.uyyala@intel.com>
-
- 12 Feb, 2014 2 commits
-
-
Mark Salyzyn authored
(cherry picked from commit 3e971277) Change-Id: Ic1ab533f756fbd44b1f2e5ae12e2f5736ace7740
-
Mark Salyzyn authored
Change-Id: Ic1ab533f756fbd44b1f2e5ae12e2f5736ace7740
-
- 17 Oct, 2013 1 commit
-
-
Jeff Sharkey authored
When physical devices are unsafely removed, unmountAllAsecsInDir() fails to find any ASECs, and leaves them all mounted, preventing the rest of volume from going down. Now we examine all ASEC containers, and remove when on external storage, or when the storage media is no longer found. Bug: 11175082 Change-Id: Iffa38ea43f7e5ad78b598374ebeb60a8727d99fd
-
- 08 Oct, 2013 1 commit
-
-
Jeff Sharkey authored
We now run an sdcard fuse daemon on top of a physical SD card. Add support for that. Bug: 10330128 Change-Id: I6a291f861ccb0f2911c07cc8f659e2cec4e6d76c
-
- 08 May, 2012 1 commit
-
-
Magnus Malmborn authored
Delay sending of "VolumeDiskInserted" broadcast until the disk is ready (ie until all the partitions have been received from kernel). This solves a race with MountService, otherwise there is a risk that MountService tries to mount the SD-card before the partition(s) have been received and the card will fail to mount. Change-Id: Ie2a28227ae9a7d6fe9106fb6875f469a0e899014
-
- 07 May, 2012 1 commit
-
-
Lars Svensson authored
If SD card is removed without unmounting when in USB mass storage mode the ums share is not properly closed and the device files 179:0 and 179:1 are left in use. This causes erratic behaviour on subsequent operations on the card, i.e. mounting and formatting will fail. Change-Id: I757703c6282f4b76e2d8b027f4644920737309b6
-
- 01 Sep, 2011 1 commit
-
-
Ken Sumrall authored
Add the force_and_revert option to the unmount command which will force the unmount, and revert a crypto mapping. This is used during factory reset so that when the internal sdcard volume is formatted, it formats the raw device, not the encrypted mapping. Change-Id: I36b6ff9bb54863b121de635472a303bf4a2334a9
-
- 07 Jul, 2011 1 commit
-
-
android-merger authored
This reverts commit f3d3ce5e.
-
- 06 Jul, 2011 1 commit
-
-
Joseph Lehrer authored
Works around a race condition between the vold and MountService uevent handlers Change-Id: I71c92f2e9b92e1fefc192da166a91d81bc60e242 Signed-off-by:
Mike Lockwood <lockwood@android.com>
-
- 09 Jun, 2011 1 commit
-
-
Bruce Beare authored
Orig-Change-Id: I6e9db8c55db49b4aa61dd40cd59495f55e5b3368 Signed-off-by:
Bruce Beare <brucex.j.beare@intel.com>
-
- 02 Jun, 2011 1 commit
-
-
Ken Sumrall authored
Add support for keeping the keys in a separate file on another partition, for devices with no space reserved for a footer after the userdata filesystem. Add support for encrypting the volumes managed by vold, if they meet certain criteria, namely being marked as nonremovable and encryptable in vold.fstab. A bit of trickiness is required to keep vold happy. Change-Id: Idf0611f74b56c1026c45742ca82e0c26e58828fe
-
- 29 Apr, 2011 1 commit
-
-
Nick Kralevich authored
Change-Id: I1e434c5b47b40fabaf1e702d7f2e43a88c0497dc
-
- 18 Apr, 2011 1 commit
-
-
Nick Kralevich authored
Change-Id: I6d5b26756c8434d6396f3535252608ce61eabfd8
-
- 17 Nov, 2010 1 commit
-
-
Chih-Wei Huang authored
Change-Id: Ic8e18e6191ad7ee33162e36060b57a6802cf0883
-
- 17 Sep, 2010 1 commit
-
-
Mike Lockwood authored
Only share a single partition via UMS if a specific partition is specified in vold.fstab (rather than "auto") Do not fail to reformat if MBR cannot be found. Change-Id: I544ca2ee325c308af656ab9f4732c788a964c156 Signed-off-by:
Mike Lockwood <lockwood@android.com>
-
- 30 Aug, 2010 1 commit
-
-
Ethan authored
When volume state changed from shared to no_media, volume is not properly unshared. Change-Id: I0117d67da95440d982275746a166ef6f4ac1c0e2 Signed-off-by:
Ethan <ethan.too@gmail.com>
-
- 22 Jul, 2010 1 commit
-
-
Bruce Beare authored
Change-Id: I6e9db8c55db49b4aa61dd40cd59495f55e5b3368 Signed-off-by:
Bruce Beare <brucex.j.beare@intel.com>
-
- 15 Apr, 2010 1 commit
-
-
San Mehat authored
Fixes bug: http://b/issue?id=2567572 Note: The framework will still likely restart since the system_server is holding references to assets on the card which are mmaped, but at least now storage will be available when a new card is re-inserted. Change-Id: I4e195c0c666426b93da47198fa826a6f58d855a9 Signed-off-by:
San Mehat <san@google.com>
-
- 25 Mar, 2010 2 commits
-
-
San Mehat authored
Change-Id: I48ee8bd90b47f5845f069cdf4d1b8ba6ecdb1b39 Signed-off-by:
San Mehat <san@google.com>
-
Kenny Root authored
This reverts commit a9f423dd.
-
- 24 Mar, 2010 1 commit
-
-
Kenny Root authored
There's a possibility that if something were messed up a call to NetlinkEvent::findParam could return a NULL. Passing NULL as the argument into atoi() would cause a null pointer dereference. Change-Id: Ib071afbbe2adc341108c245ffa596cc8730bd8fd
-
- 10 Mar, 2010 1 commit
-
-
San Mehat authored
Also handles an issue where NPARTS=0 on a disk change uevent Change-Id: I77c56f177dc65df91468bbd7d5fe1889db414d7a Signed-off-by:
San Mehat <san@google.com>
-
- 18 Feb, 2010 1 commit
-
-
San Mehat authored
Signed-off-by:
San Mehat <san@google.com>
-
- 04 Jan, 2010 1 commit
-
-
San Mehat authored
Signed-off-by:
San Mehat <san@google.com>
-
- 19 Dec, 2009 1 commit
-
-
San Mehat authored
Signed-off-by:
San Mehat <san@google.com>
-
- 21 Oct, 2009 1 commit
-
-
San Mehat authored
Signed-off-by:
San Mehat <san@google.com>
-
- 12 Oct, 2009 4 commits
-
-
San Mehat authored
Signed-off-by:
San Mehat <san@android.com>
-
San Mehat authored
Signed-off-by:
San Mehat <san@android.com>
-
San Mehat authored
Signed-off-by:
San Mehat <san@android.com>
-
San Mehat authored
Signed-off-by:
San Mehat <san@android.com>
-
- 11 Oct, 2009 1 commit
-
-
San Mehat authored
Let there be light. Signed-off-by:
San Mehat <san@android.com>
-