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. 25 Jul, 2014 1 commit
  3. 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
  4. 05 May, 2014 1 commit
  5. 12 Feb, 2014 2 commits
  6. 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
  7. 08 Oct, 2013 1 commit
  8. 08 May, 2012 1 commit
    • Magnus Malmborn's avatar
      Delay disk inserted broadcast until disk is ready · 3dafc26e
      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
      3dafc26e
  9. 07 May, 2012 1 commit
    • Lars Svensson's avatar
      Unshare ums when SD card is removed · 62736619
      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
      62736619
  10. 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
  11. 07 Jul, 2011 1 commit
  12. 06 Jul, 2011 1 commit
  13. 09 Jun, 2011 1 commit
  14. 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
  15. 29 Apr, 2011 1 commit
  16. 18 Apr, 2011 1 commit
  17. 17 Nov, 2010 1 commit
  18. 17 Sep, 2010 1 commit
  19. 30 Aug, 2010 1 commit
  20. 22 Jul, 2010 1 commit
  21. 15 Apr, 2010 1 commit
  22. 25 Mar, 2010 2 commits
  23. 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
  24. 10 Mar, 2010 1 commit
  25. 18 Feb, 2010 1 commit
  26. 04 Jan, 2010 1 commit
  27. 19 Dec, 2009 1 commit
  28. 21 Oct, 2009 1 commit
  29. 12 Oct, 2009 4 commits
  30. 11 Oct, 2009 1 commit