1. 09 Jun, 2014 1 commit
    • Paul Lawrence's avatar
      On low power turn off rather than rebooting to allow device to charge · 73d7a02d
      Paul Lawrence authored
      The code was using encrypted_upto == 0 as an indicator that encryption
      has succeeded. This meant that if no encryption happened, we would reboot
      continually.
      
      We now set encrypted_upto to fs_size when encryption is complete.
      
      Also don't start to encrypt unless we are at 10% power. Stop when we
      get to 5% power. This should lead to partial encryptions only very
      rarely.
      
      Bug: 15513202
      Change-Id: I6214d78579d1fbbe2f63ee8862473d86a89d29b3
      73d7a02d
  2. 21 Mar, 2014 1 commit
    • Paul Lawrence's avatar
      Don't corrupt ssd when encrypting and power fails · 87999173
      Paul Lawrence authored
      Stop encryption when battery is low, mark position, and continue on reboot.
      
      Note - support for multiple encrypted volumes removed as no devices seem
      to exist with an fstab that uses this feature. If you want support for such
      a device, contact me and we will re-add it with appropriate testing.
      
      Bug: 13284213
      Change-Id: I1f7178e4f7dd8ea816cbc03ab5c4f6543e98acaa
      87999173
  3. 22 Mar, 2013 1 commit
    • Ken Sumrall's avatar
      Vold: Add the fstrim subsystem to vold · b87937cd
      Ken Sumrall authored
      The fstrim subsystem implements the dotrim command, which goes
      through all the writable filesystems on the device, and invokes
      the FITRIM ioctl() on them.  This marks all the unused blocks on
      the underlying flash device as unused, so the device performs better.
      
      Change-Id: I5fc8c2f60e0bc823f162d0f89580fb288ecb2160
      b87937cd
  4. 04 Jan, 2013 1 commit
    • Rom Lemarchand's avatar
      Fix calls to logwrap · 5593c856
      Rom Lemarchand authored
      Make sure all the calls to logwrap are consistent with the function's
      semantics.
      
      Change-Id: Ib0e2ad5c283cc4bb06c0ef5d6a9a52a5840b3dd2
      5593c856
  5. 11 Oct, 2009 1 commit