From c7572eb87ad8da95b3460546079b513c7a844942 Mon Sep 17 00:00:00 2001 From: that Date: Tue, 31 Mar 2015 18:55:30 +0200 Subject: partition: support texfat module Change-Id: I21d0498fc16fdb29d09d6e6fe715e57d1f35e72b --- partition.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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"); -- cgit v1.2.3