summaryrefslogtreecommitdiffstats
path: root/Volume.h
diff options
context:
space:
mode:
authorOran Avraham <oranav@gmail.com>2012-11-02 18:18:48 +0200
committerOran Avraham <oranav@gmail.com>2012-11-02 18:18:48 +0200
commit3e61f1d12494ac0f456623681f12edf9b356245f (patch)
tree7048d110687d801d0f538bf46b96c19ac3dc0c11 /Volume.h
parent42c34c801f918507397754f185f85d79d8558d39 (diff)
downloadsystem_vold-3e61f1d12494ac0f456623681f12edf9b356245f.zip
system_vold-3e61f1d12494ac0f456623681f12edf9b356245f.tar.gz
system_vold-3e61f1d12494ac0f456623681f12edf9b356245f.tar.bz2
UMS support with any volume, not only primary (1/3)
This patch enables UMS support when any volume supports it, even when the primary storage doesn't. 1. Vold: assign lun_numbers sequentially to the volumes being added to the VolumeManager. 2. Fix portions of code which assume that the device has UMS support iff the primary storage supports UMS. Instead, determine whether the device supports UMS by checking each volume. 3. Display the UMS option in Settings.apk when any volume supports it. Change-Id: I3976ee4a26f1ae7bd3faee814d3740312588f4c8 Signed-off-by: Oran Avraham <oranav@gmail.com>
Diffstat (limited to 'Volume.h')
-rw-r--r--Volume.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Volume.h b/Volume.h
index 31fa653..9dd263e 100644
--- a/Volume.h
+++ b/Volume.h
@@ -55,6 +55,7 @@ protected:
int mPartIdx;
int mOrigPartIdx;
bool mRetryMount;
+ int mLunNumber;
/*
* The major/minor tuple of the currently mounted filesystem.
@@ -74,6 +75,9 @@ public:
int getState() { return mState; }
bool isPrimaryStorage();
+ int getLunNumber() { return mLunNumber; }
+ void setLunNumber(int lunNumber);
+
virtual int handleBlockEvent(NetlinkEvent *evt);
virtual dev_t getDiskDevice();
virtual dev_t getShareDevice();