OSDN Git Service

Add f2fs support for private volumes.
authorJeff Sharkey <jsharkey@android.com>
Fri, 22 May 2015 05:35:42 +0000 (22:35 -0700)
committerJeff Sharkey <jsharkey@android.com>
Tue, 9 Jun 2015 03:21:25 +0000 (20:21 -0700)
commitd0640f6358041f7e2657167560b357078db73526
tree7cbd062631c9ab2e8e7f9859028219d352c4fb60
parentd0b4295ccc07d0cd715ade415c8c0d7d6945880e
Add f2fs support for private volumes.

When formatting volumes, pass along fsType string which can be "auto"
to let the volume select the best choice.  For now, private volumes
assume that MMC devices (like SD cards) are best off using f2fs when
both kernel support and tools are present, otherwise fall back to
ext4.  Use blkid when mounting to pick the right set of tools.

Move filesystem utility methods into namespaces and place in separate
directory to be more organized.

Bug: 20275581
Change-Id: Id5f82d8672dda2e9f68c35b075f28232b0b55ed4
19 files changed:
Android.mk
CommandListener.cpp
Disk.cpp
PrivateVolume.cpp
PrivateVolume.h
PublicVolume.cpp
PublicVolume.h
Utils.cpp
Utils.h
VolumeBase.cpp
VolumeBase.h
VolumeManager.cpp
fs/Ext4.cpp [moved from Ext4.cpp with 72% similarity]
fs/Ext4.h [new file with mode: 0644]
fs/F2fs.cpp [new file with mode: 0644]
fs/F2fs.h [moved from Ext4.h with 54% similarity]
fs/Vfat.cpp [moved from Fat.cpp with 73% similarity]
fs/Vfat.h [moved from Fat.h with 54% similarity]
main.cpp