diff options
| author | Mike Lockwood <lockwood@android.com> | 2010-09-17 18:50:51 -0400 |
|---|---|---|
| committer | Mike Lockwood <lockwood@android.com> | 2010-09-17 18:50:51 -0400 |
| commit | 2dfe297ec47559dbe2297a72bea71cf515c03797 (patch) | |
| tree | 6e450b33108c9e9937a93603ca3656542b975a74 /DirectVolume.cpp | |
| parent | a3e06084564c86ff618c40f185f3676b8b629b94 (diff) | |
| download | android_system_vold-2dfe297ec47559dbe2297a72bea71cf515c03797.tar.gz android_system_vold-2dfe297ec47559dbe2297a72bea71cf515c03797.tar.bz2 android_system_vold-2dfe297ec47559dbe2297a72bea71cf515c03797.zip | |
Fixes for devices with internal FAT file system:
Only share a single partition via UMS if a specific partition
is specified in vold.fstab (rather than "auto")
Do not fail to reformat if MBR cannot be found.
Change-Id: I544ca2ee325c308af656ab9f4732c788a964c156
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'DirectVolume.cpp')
| -rw-r--r-- | DirectVolume.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/DirectVolume.cpp b/DirectVolume.cpp index 1f9f084..ce5b892 100644 --- a/DirectVolume.cpp +++ b/DirectVolume.cpp @@ -65,6 +65,14 @@ dev_t DirectVolume::getDiskDevice() { return MKDEV(mDiskMajor, mDiskMinor); } +dev_t DirectVolume::getShareDevice() { + if (mPartIdx != -1) { + return MKDEV(mDiskMajor, mPartIdx); + } else { + return MKDEV(mDiskMajor, mDiskMinor); + } +} + void DirectVolume::handleVolumeShared() { setState(Volume::State_Shared); } |
