summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthat <github@that.at>2015-03-31 18:55:30 +0200
committerDees Troy <dees_troy@teamw.in>2015-05-19 20:50:00 +0200
commitc7572eb87ad8da95b3460546079b513c7a844942 (patch)
tree5ff203d0695c697e98526d6541fb2bd2436f0775
parentBackup: fix 'out of memory' issue when backing up large partition as image (diff)
downloadandroid_bootable_recovery-c7572eb87ad8da95b3460546079b513c7a844942.tar
android_bootable_recovery-c7572eb87ad8da95b3460546079b513c7a844942.tar.gz
android_bootable_recovery-c7572eb87ad8da95b3460546079b513c7a844942.tar.bz2
android_bootable_recovery-c7572eb87ad8da95b3460546079b513c7a844942.tar.lz
android_bootable_recovery-c7572eb87ad8da95b3460546079b513c7a844942.tar.xz
android_bootable_recovery-c7572eb87ad8da95b3460546079b513c7a844942.tar.zst
android_bootable_recovery-c7572eb87ad8da95b3460546079b513c7a844942.zip
-rw-r--r--partition.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/partition.cpp b/partition.cpp
index b5aacccf6..248ee9bc2 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -1001,7 +1001,15 @@ bool TWPartition::Mount(bool Display_Error) {
}
return true;
}
- } else if (!exfat_mounted && mount(Actual_Block_Device.c_str(), Mount_Point.c_str(), Current_File_System.c_str(), Mount_Flags, Mount_Options.c_str()) != 0 && mount(Actual_Block_Device.c_str(), Mount_Point.c_str(), Current_File_System.c_str(), Mount_Flags, NULL) != 0) {
+ }
+
+ string mount_fs = Current_File_System;
+ if (Current_File_System == "exfat" && TWFunc::Path_Exists("/sys/module/texfat"))
+ mount_fs = "texfat";
+
+ if (!exfat_mounted &&
+ mount(Actual_Block_Device.c_str(), Mount_Point.c_str(), mount_fs.c_str(), Mount_Flags, Mount_Options.c_str()) != 0 &&
+ mount(Actual_Block_Device.c_str(), Mount_Point.c_str(), mount_fs.c_str(), Mount_Flags, NULL) != 0) {
#ifdef TW_NO_EXFAT_FUSE
if (Current_File_System == "exfat") {
LOGINFO("Mounting exfat failed, trying vfat...\n");