summaryrefslogtreecommitdiffstats
path: root/partition.cpp
diff options
context:
space:
mode:
authorbigbiff <bigbiff@teamw.in>2014-12-21 19:41:26 +0100
committerDees Troy <dees_troy@teamw.in>2014-12-22 04:52:56 +0100
commit0c53203efe377196e2bf22290fed000c7ee38870 (patch)
tree7db4bcf115bb48b79be14979331c8f8d78fb27e7 /partition.cpp
parentfixPermissions: simplify code, fix bugs (diff)
downloadandroid_bootable_recovery-0c53203efe377196e2bf22290fed000c7ee38870.tar
android_bootable_recovery-0c53203efe377196e2bf22290fed000c7ee38870.tar.gz
android_bootable_recovery-0c53203efe377196e2bf22290fed000c7ee38870.tar.bz2
android_bootable_recovery-0c53203efe377196e2bf22290fed000c7ee38870.tar.lz
android_bootable_recovery-0c53203efe377196e2bf22290fed000c7ee38870.tar.xz
android_bootable_recovery-0c53203efe377196e2bf22290fed000c7ee38870.tar.zst
android_bootable_recovery-0c53203efe377196e2bf22290fed000c7ee38870.zip
Diffstat (limited to '')
-rw-r--r--partition.cpp25
1 files changed, 12 insertions, 13 deletions
diff --git a/partition.cpp b/partition.cpp
index 80eb5aa83..9770a5f14 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -2056,19 +2056,18 @@ uint64_t TWPartition::Get_Max_FileSize() {
const uint64_t constTB = (uint64_t) constGB * 1024;
const uint64_t constPB = (uint64_t) constTB * 1024;
const uint64_t constEB = (uint64_t) constPB * 1024;
-
- if (Current_File_System == "ext4")
- maxFileSize = 16 * constTB; //16 TB
- else if (Current_File_System == "vfat")
- maxFileSize = 4 * constGB; //4 GB
- else if (Current_File_System == "ntfs")
- maxFileSize = 256 * constTB; //256 TB
- if (Current_File_System == "exfat")
- maxFileSize = 16 * constPB; //16 PB
- else if (Current_File_System == "ext3")
- maxFileSize = 2 * constTB; //2 TB
- else if (Current_File_System == "f2fs")
- maxFileSize = 3.94 * constTB; //3.94 TB
+ if (Current_File_System == "ext4")
+ maxFileSize = 16 * constTB; //16 TB
+ else if (Current_File_System == "vfat")
+ maxFileSize = 4 * constGB; //4 GB
+ else if (Current_File_System == "ntfs")
+ maxFileSize = 256 * constTB; //256 TB
+ else if (Current_File_System == "exfat")
+ maxFileSize = 16 * constPB; //16 PB
+ else if (Current_File_System == "ext3")
+ maxFileSize = 2 * constTB; //2 TB
+ else if (Current_File_System == "f2fs")
+ maxFileSize = 3.94 * constTB; //3.94 TB
else
maxFileSize = 100000000L;
return maxFileSize - 1;