VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/Forms/VolumeCreationWizard.cpp
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-01-30 00:39:43 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-01-30 00:48:20 +0100
commitb407512248034dee23186febfc5e6c9597b77912 (patch)
treeb69314c181695b29a2ffeae346df19ec53be7362 /src/Main/Forms/VolumeCreationWizard.cpp
parentdde3dcf14d4c9b99b528a99f7ece20fc75396df9 (diff)
downloadVeraCrypt-b407512248034dee23186febfc5e6c9597b77912.tar.gz
VeraCrypt-b407512248034dee23186febfc5e6c9597b77912.zip
MacOSX: Support creation exFAT volumes on OSX using the built-in command newfs_exfat
Diffstat (limited to 'src/Main/Forms/VolumeCreationWizard.cpp')
-rwxr-xr-xsrc/Main/Forms/VolumeCreationWizard.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Main/Forms/VolumeCreationWizard.cpp b/src/Main/Forms/VolumeCreationWizard.cpp
index 4b63ce2f..1e4c2513 100755
--- a/src/Main/Forms/VolumeCreationWizard.cpp
+++ b/src/Main/Forms/VolumeCreationWizard.cpp
@@ -445,13 +445,18 @@ namespace VeraCrypt
switch (SelectedFilesystemType)
{
+#if defined (TC_LINUX)
case VolumeCreationOptions::FilesystemType::Ext2: fsFormatter = "mkfs.ext2"; break;
case VolumeCreationOptions::FilesystemType::Ext3: fsFormatter = "mkfs.ext3"; break;
case VolumeCreationOptions::FilesystemType::Ext4: fsFormatter = "mkfs.ext4"; break;
+ case VolumeCreationOptions::FilesystemType::NTFS: fsFormatter = "mkfs.ntfs"; break;
+ case VolumeCreationOptions::FilesystemType::exFAT: fsFormatter = "mkfs.exfat"; break;
+#elif defined (TC_MACOSX)
case VolumeCreationOptions::FilesystemType::MacOsExt: fsFormatter = "newfs_hfs"; break;
+ case VolumeCreationOptions::FilesystemType::exFAT: fsFormatter = "newfs_exfat"; break;
+#elif defined (TC_FREEBSD) || defined (TC_SOLARIS)
case VolumeCreationOptions::FilesystemType::UFS: fsFormatter = "newfs" ; break;
- case VolumeCreationOptions::FilesystemType::NTFS: fsFormatter = "mkfs.ntfs" ; break;
- case VolumeCreationOptions::FilesystemType::exFAT: fsFormatter = "mkfs.exfat" ; break;
+#endif
default: break;
}