Revert "Use fstab v1 as a default."

This reverts commit 1a6c91fcbc16f90b3dcbc9cef3e1052c84a40ffb.

Change-Id: I5fb1105bfb640f0552ddcc4a99b6f98487a1c946
recovery: ignore voldmanaged volumes

Voldmanaged volumes use sysfs path instead of device
path which is not supported by recovery, so a separate
entries for /sdcard and /external_sd are required.

We ignore these volume so we don't show the menu for
"mount /storage/sdcard0", etc.

Change-Id: I6bf26e0ad3fb59579c986cf5537f9e70448891e9
Update wipe data option confirmation

This commit allows the wipe data/factory reset option to recognize the
.one_confirm or .no_confirm files in the clockworkmod folder.

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: Ib0f82b4448e3b9df95a5e59a49428f3e9da58578
Add sdparted option to partition in ext4 fstype

Taken from PhilZ Touch recovery

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I079617fc32f8ad0aea754a60898cd4f9cc482524
Merge "Revert "Use fstab v1 as a default."" into cm-10.2
Merge "Add sdparted option to partition in ext4 fstype" into cm-10.2
unlink() equals remove() in this situation can cause data loss and filesystem corruption if some data is not sync when mount sdcard

Change-Id: Ib3ad32842fcbf3b058c986df6901c7744bd5cf1f
fix stat for correct free space when backup path is second storage

Change-Id: I762269d696a194889e74c101b9338920e924ebb5
Shrink cid

Change-Id: I00556341b746f186f424ebe46c94fd02f10e6536
v6036

Change-Id: I7e70d0e2e367f703fe420d4300eb5fecdc247099
Enable mount usb for external storage on datamedia devices

Change-Id: I73b4112983b7b118d738eb224b32f4f0beb5d147
Fix issue where android device manager, etc, dont actually wipe data.

--wipe_data issues via /cache/recovery/command will now completely format data.

All other manual wipe commands will preserve data on /data/media.
There is another mounts/storage option that will do a true data format.

Change-Id: Ie8ecd2b0e14c3bb1d8a404ea868cdf703455d2ab
Merge "fix stat for correct free space when backup path is second storage" into cm-10.2
Merge "Enable mount usb for external storage on datamedia devices" into cm-10.2
Merge "Fix issue where android device manager, etc, dont actually wipe data." into cm-10.2
If sd-ext is defined in recovery.fstab, but user did not partition sdcard, silent failure while formatting device (every nandroid restore or wipe data)

Change-Id: I3ee2f891899be8e4fe0d722e64357dc5e7bc7428
recovery: Only install adb keys once

 * Recovery is currently calling setup_adbd when the process starts to
   fetch the keys from the data partition and (re)start adbd.
 * This of course has the heinous side effect of making it
   impossible to use gdbserver to debug recovery, making me a sad panda.
 * Make setup_adbd a pseudo-binary, and run it as a oneshot service
   instead.

Change-Id: Ib4b9e342564bb60bdc2df4cee91566f31c7db8f1
recovery: Revenge of MiniVold

 * Vold has been refactored to be friendly to an environment such as
   recovery. Using Vold will eliminate many hacks and add previously
   unavailable features.
 * Link with libminivold and create a pseudo-binary to launch as a
   service in recovery.
 * Libvoldclient is an event-driven client for controlling the daemon.
 * Handles device hotplug and automatic mounting, if desired.
 * Manages USB storage
 * Can check and format volumes using any supported filesystem
 * Dynamically generate all storage paths
 * Dynamically refresh menus affected by storage changes
 * Fixed wall-of-compile-warnings and const-correctness in extendedcommands.c
 * Misc cleanups
 * Say goodbye to "apply /sdcard/update.zip". You have served us well.

Change-Id: I13a3d72493f8fce7c19f192f9e94ad22cb60a2d2
recovery: Don't enable UMS function unless needed

 * This causes problems with some hosts. Only enable the composition if
   the user actually turns UMS on.

Change-Id: I18b109a3416d55ef711d346685d46a93851da332
recovery: Don't automount external storage at startup

 * Do it for hotplug and on-demand only.

Change-Id: I9c0ca96203a8ff1f16fa42e31f426cd25bdaba1d