Adding support of dm-req-crypt

Currently Android provides disk encryption support using dm-crypt
which is based on bios. dm-crypt uses 512 bytes packet size for
crypto operations. While 512 bytes size packet is ok for SW based
disk encryption, it is inefficient for HW based crypto engines.
dm-req-crypt is similar to dm-crypt except it uses block requests
rathe bios for crypto operations. block requests when unpacked
carries data upto 512KB. Hence, HW based crypto engine can be used
more efficiently.

Change-Id: Ic541d4d1b9db4ce32465e30c5f25619a80975767

Conflicts:
	cryptfs.c
Avoid segv by checking argc in "storage user <mountpoint>"

Change-Id: Iffd67746e2e273c4c3f87741e5f13aa511ccb557
Signed-off-by: JP Abgrall <jpa@google.com>
remove selinux and more

Signed-off-by: dragon <dragon7780@hotmail.nl>
Do not show disk errors if they are expected.

An error shows up during boot if vold disk has different majors.
On some devices this is expected and set in config, so do not
confuse users and skip the error (as it ain't one)
Bonus: Better log for duplicate state. It was useless...

Change-Id: Ibc047729432e2f6746a9439b828d1443951ade1f
vold: Clean up warnings

 * Clean up all the dead code and get rid of all warnings

Change-Id: I8101b6314012a39e8e3a9b9b9aa8f4841b4c430d

Conflicts:
	Ntfs.cpp
vold: Raise MAX_PARTITIONS to 32

 * We raised this in 10.2 globally, lets put it back to 32 so that
   new bringups don't get stuck on this. It's likely that every single
   device which uses physical, nonremovable volumes with vold will hit
   this limit.

Change-Id: Id7522681a2317c4aff49ca27e1c57e69fe57213c

Conflicts:
	DirectVolume.h
Add Flash-Friendly File System (f2fs) support.

Change-Id: If46bf7329a7453122a4379f9bc41cf9553426e74

Conflicts:
	Volume.cpp
Revert "Add Flash-Friendly File System (f2fs) support."

This reverts commit 261c4e0fb6692b2b263022817f432d6b1e15712d.
vold: Allow specifying the filesystem type when formatting

 * Optional parameter added to "volume format" to specify the filesystem
   type to use. If not specified, default is to auto-detect.
 * Add support for formatting NTFS.
 * Use mke2fs to format when not creating containers.

Change-Id: I2bc0f92d59adb9604b35a1f70febccfba68715d3

Conflicts:
	Ntfs.cpp
	Volume.cpp
Fix