- 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>
-
- 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>
-
- 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
-
- 01 Oct, 2013 1 commit
-
-
Bjorn Andersson authored
The MAX_PARTS define is not used anywhere in the source code and as the MAX_PARTITIONS constant was introduced at the same time and used to hold the same value it's most likely just a remainder from the development of the partition support code. Change-Id: I2ae8a062c5643839429f4e3e30a9af05597ce499
-
- 20 Sep, 2012 1 commit
-
-
Hirofumi Ando authored
Some platforms needs more than 4 partitions, e.g. the lt26. Change-Id: Id22125313824b0ae15a4596709f52c4ab609a542
-
- 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
-
- 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
-
- 21 Sep, 2010 1 commit
-
-
Mike Lockwood authored
Fix formatting partitions beyond the first partition. Do not try to initialize the MBR when formatting only a single partition. Change-Id: Ifbbd279b1c288b7b1b884a1a89248e3086ed735f Signed-off-by:
Mike Lockwood <lockwood@android.com>
-
- 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>
-
- 25 Mar, 2010 1 commit
-
-
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
-
- 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 3 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>
-
- 11 Oct, 2009 1 commit
-
-
San Mehat authored
Let there be light. Signed-off-by:
San Mehat <san@android.com>
-