summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2014-10-14 16:04:43 +0200
committerEthan Yonker <dees_troy@teamw.in>2014-10-14 16:04:54 +0200
commit25f20c19286c68c7071a5f2508a514d30bb5b8fb (patch)
tree63adfa5add308127cceac92727f7723e6b06bc5d
parentmtp: fix log spam: findNode not finding a node is not an error (diff)
downloadandroid_bootable_recovery-25f20c19286c68c7071a5f2508a514d30bb5b8fb.tar
android_bootable_recovery-25f20c19286c68c7071a5f2508a514d30bb5b8fb.tar.gz
android_bootable_recovery-25f20c19286c68c7071a5f2508a514d30bb5b8fb.tar.bz2
android_bootable_recovery-25f20c19286c68c7071a5f2508a514d30bb5b8fb.tar.lz
android_bootable_recovery-25f20c19286c68c7071a5f2508a514d30bb5b8fb.tar.xz
android_bootable_recovery-25f20c19286c68c7071a5f2508a514d30bb5b8fb.tar.zst
android_bootable_recovery-25f20c19286c68c7071a5f2508a514d30bb5b8fb.zip
-rw-r--r--partition.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/partition.cpp b/partition.cpp
index add9460fc..3fadfb980 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -1509,6 +1509,11 @@ bool TWPartition::Wipe_EXT23(string File_System) {
}
bool TWPartition::Wipe_EXT4() {
+ Find_Actual_Block_Device();
+ if (!Is_Present) {
+ LOGERR("Block device not present, cannot wipe %s.\n", Display_Name.c_str());
+ return false;
+ }
if (!UnMount(true))
return false;