Add back "unmountable" volume state.
Also automatically unmount when format is requested.
Bug: 19993667
Change-Id: I2c81b7ccc9d69df61d7ae4df1e8224c02f260044
diff --git a/VolumeBase.h b/VolumeBase.h
index e3d91ff..465fc61 100644
--- a/VolumeBase.h
+++ b/VolumeBase.h
@@ -63,11 +63,18 @@
};
enum class State {
+ /* Next states: mounting, formatting */
kUnmounted = 0,
+ /* Next states: mounted, unmountable */
kMounting,
+ /* Next states: unmounting */
kMounted,
+ /* Next states: unmounted */
kFormatting,
+ /* Next states: unmounted */
kUnmounting,
+ /* Next states: mounting, formatting */
+ kUnmountable,
};
const std::string& getId() { return mId; }