Increase asec image size for reflecting ext4 reserved clusters
Daniel Rosenberg authored
From Shawn Heo's patch:

Ext4 introduced reserved clusters to prevent costly zeroout, or
unexpected ENOSPC. The size is 2% or 4096 clusters, whichever
is smaller (http://lwn.net/Articles/546473/).

So, we need to allocate additionally this amount of free space
to asecs when vold create asec images. This is required when
Android runs on Linux kernel 3.10 or later.

see: https://android-review.git.corp.google.com/#/c/96160



Change-Id: Iacff16b8cf0314493c355fa741bcfa519f744d6c
Signed-off-by: default avatarDaniel Rosenberg <drosen@google.com>
e9196fec
Name Last commit Last update
tests Change ASCII conversion for hash and add tests
Android.mk Add keymaster support to cryptfs
Asec.h Add in ext4 support for ASEC containers
CheckBattery.cpp On low power turn off rather than rebooting to allow device to charge
CheckBattery.h On low power turn off rather than rebooting to allow device to charge
CleanSpec.mk Add an empty CleanSpec.mk
CommandListener.cpp Added support for ext4 ASEC resizing.
CommandListener.h vold: Remove obsolete xwarp support.
Devmapper.cpp Added support for ext4 ASEC resizing.
Devmapper.h vold: Bugfixes & cleanups
DirectVolume.cpp am 099b20f3: am 1881395b: am c6752b06: Merge "vold: wildcard support for device path matching"
DirectVolume.h am 099b20f3: am 1881395b: am c6752b06: Merge "vold: wildcard support for device path matching"
Ext4.cpp Added support for ext4 ASEC resizing.
Ext4.h Added support for ext4 ASEC resizing.
Fat.cpp vold: Add an optional wipe paramter to the volume format command
Fat.h vold: Add an optional wipe paramter to the volume format command
Loop.cpp Added support for ext4 ASEC resizing.
Loop.h Added support for ext4 ASEC resizing.
NetlinkHandler.cpp Remove obsolete code for monitoring USB status
NetlinkHandler.h system: vold2: Initial skeleton for vold2.
NetlinkManager.cpp vold: fix potential socket leak
NetlinkManager.h system: vold2: Initial skeleton for vold2.
Process.cpp vold: Switch from LOG -> SLOG
Process.h vold: Refactor Processkiller and add command to return users of a mount point
ResponseCode.cpp vold: Switch from LOG -> SLOG
ResponseCode.h
VoldCommand.cpp
VoldCommand.h
VoldUtil.c
VoldUtil.h
Volume.cpp
Volume.h
VolumeManager.cpp
VolumeManager.h
cryptfs.c
cryptfs.h
fstrim.c
fstrim.h
hash.h
main.cpp
vdc.c