summaryrefslogtreecommitdiffstats
path: root/partition.cpp
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2015-11-11 23:22:45 +0100
committerDees Troy <dees_troy@teamw.in>2015-11-26 05:09:55 +0100
commit18794c820f109e6de2e16af0f058b562b0492cbc (patch)
tree7792ad1809e62793ad5b1e86efd6d806d1368c36 /partition.cpp
parentFree some memory allocations (diff)
downloadandroid_bootable_recovery-18794c820f109e6de2e16af0f058b562b0492cbc.tar
android_bootable_recovery-18794c820f109e6de2e16af0f058b562b0492cbc.tar.gz
android_bootable_recovery-18794c820f109e6de2e16af0f058b562b0492cbc.tar.bz2
android_bootable_recovery-18794c820f109e6de2e16af0f058b562b0492cbc.tar.lz
android_bootable_recovery-18794c820f109e6de2e16af0f058b562b0492cbc.tar.xz
android_bootable_recovery-18794c820f109e6de2e16af0f058b562b0492cbc.tar.zst
android_bootable_recovery-18794c820f109e6de2e16af0f058b562b0492cbc.zip
Diffstat (limited to 'partition.cpp')
-rw-r--r--partition.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/partition.cpp b/partition.cpp
index 5058e1d5b..918ba3ce0 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -1215,7 +1215,7 @@ bool TWPartition::Wipe_AndSec(void) {
bool TWPartition::Can_Repair() {
if (Mount_Read_Only)
return false;
- if (Current_File_System == "vfat" && TWFunc::Path_Exists("/sbin/dosfsck"))
+ if (Current_File_System == "vfat" && TWFunc::Path_Exists("/sbin/fsck.fat"))
return true;
else if ((Current_File_System == "ext2" || Current_File_System == "ext3" || Current_File_System == "ext4") && TWFunc::Path_Exists("/sbin/e2fsck"))
return true;
@@ -1232,15 +1232,15 @@ bool TWPartition::Repair() {
string command;
if (Current_File_System == "vfat") {
- if (!TWFunc::Path_Exists("/sbin/dosfsck")) {
- gui_print("dosfsck does not exist! Cannot repair!\n");
+ if (!TWFunc::Path_Exists("/sbin/fsck.fat")) {
+ gui_print("fsck.fat does not exist! Cannot repair!\n");
return false;
}
if (!UnMount(true))
return false;
- gui_print("Repairing %s using dosfsck...\n", Display_Name.c_str());
+ gui_print("Repairing %s using fsck.fat...\n", Display_Name.c_str());
Find_Actual_Block_Device();
- command = "/sbin/dosfsck -y " + Actual_Block_Device;
+ command = "/sbin/fsck.fat -y " + Actual_Block_Device;
LOGINFO("Repair command: %s\n", command.c_str());
if (TWFunc::Exec_Cmd(command) == 0) {
gui_print("Done.\n");
@@ -1726,13 +1726,13 @@ bool TWPartition::Wipe_EXT4() {
bool TWPartition::Wipe_FAT() {
string command;
- if (TWFunc::Path_Exists("/sbin/mkdosfs")) {
+ if (TWFunc::Path_Exists("/sbin/mkfs.fat")) {
if (!UnMount(true))
return false;
- gui_print("Formatting %s using mkdosfs...\n", Display_Name.c_str());
+ gui_print("Formatting %s using mkfs.fat...\n", Display_Name.c_str());
Find_Actual_Block_Device();
- command = "mkdosfs " + Actual_Block_Device;
+ command = "mkfs.fat " + Actual_Block_Device;
if (TWFunc::Exec_Cmd(command) == 0) {
Current_File_System = "vfat";
Recreate_AndSec_Folder();