1. 15 Aug, 2014 1 commit
    • Robert Chiras's avatar
      Fix Vold to properly handle full-disk file systems · 961d20d9
      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: default avatarRobert Chiras <robert.chiras@intel.com>
      961d20d9
  2. 16 May, 2014 1 commit
    • Cylen Yao's avatar
      Support non-sequential partition index · b31f33b5
      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
      b31f33b5
  3. 05 May, 2014 1 commit
  4. 17 Oct, 2013 1 commit
    • Jeff Sharkey's avatar
      Clean up ASEC unmounting on physical storage. · 8c2c15b1
      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
      8c2c15b1
  5. 08 Oct, 2013 1 commit
  6. 01 Oct, 2013 1 commit
    • Bjorn Andersson's avatar
      Remove unused MAX_PARTS define · 63b69e14
      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
      63b69e14
  7. 20 Sep, 2012 1 commit
  8. 01 Sep, 2011 1 commit
    • Ken Sumrall's avatar
      Add the ability to revert a crypto mapping when unmounting a volume · 0b8b5971
      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
      0b8b5971
  9. 02 Jun, 2011 1 commit
    • Ken Sumrall's avatar
      vold: allow to store key in a file on another partition · 29d8da8c
      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
      29d8da8c
  10. 21 Sep, 2010 1 commit
  11. 17 Sep, 2010 1 commit
  12. 25 Mar, 2010 1 commit
  13. 24 Mar, 2010 1 commit
    • Kenny Root's avatar
      Prevent null pointer deref in DirectVolume · a9f423dd
      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
      a9f423dd
  14. 19 Dec, 2009 1 commit
  15. 21 Oct, 2009 1 commit
  16. 12 Oct, 2009 3 commits
  17. 11 Oct, 2009 1 commit