mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-28 05:53:29 +01:00
MacOSX: Support APFS for creating volumes.
This commit is contained in:
parent
008d0503be
commit
12461a55a8
@ -45,6 +45,7 @@ namespace VeraCrypt
|
||||
Ext3,
|
||||
Ext4,
|
||||
MacOsExt,
|
||||
APFS,
|
||||
UFS
|
||||
};
|
||||
|
||||
|
@ -321,6 +321,8 @@ namespace VeraCrypt
|
||||
}
|
||||
else if (str.IsSameAs (L"exFAT", false))
|
||||
ArgFilesystem = VolumeCreationOptions::FilesystemType::exFAT;
|
||||
else if (str.IsSameAs (L"APFS", false))
|
||||
ArgFilesystem = VolumeCreationOptions::FilesystemType::APFS;
|
||||
#elif defined (TC_FREEBSD) || defined (TC_SOLARIS)
|
||||
else if (str.IsSameAs (L"UFS", false))
|
||||
ArgFilesystem = VolumeCreationOptions::FilesystemType::UFS;
|
||||
|
@ -475,6 +475,7 @@ namespace VeraCrypt
|
||||
#elif defined (TC_MACOSX)
|
||||
case VolumeCreationOptions::FilesystemType::MacOsExt: fsFormatter = "newfs_hfs"; break;
|
||||
case VolumeCreationOptions::FilesystemType::exFAT: fsFormatter = "newfs_exfat"; break;
|
||||
case VolumeCreationOptions::FilesystemType::APFS: fsFormatter = "newfs_apfs"; break;
|
||||
#elif defined (TC_FREEBSD) || defined (TC_SOLARIS)
|
||||
case VolumeCreationOptions::FilesystemType::UFS: fsFormatter = "newfs" ; break;
|
||||
#endif
|
||||
|
@ -13,6 +13,7 @@
|
||||
#include "System.h"
|
||||
#include "Main/GraphicUserInterface.h"
|
||||
#include "VolumeFormatOptionsWizardPage.h"
|
||||
#include <wx/platinfo.h>
|
||||
|
||||
namespace VeraCrypt
|
||||
{
|
||||
@ -40,6 +41,8 @@ namespace VeraCrypt
|
||||
#elif defined (TC_MACOSX)
|
||||
FilesystemTypeChoice->Append (L"Mac OS Extended", (void *) VolumeCreationOptions::FilesystemType::MacOsExt);
|
||||
FilesystemTypeChoice->Append (L"exFAT", (void *) VolumeCreationOptions::FilesystemType::exFAT);
|
||||
if (wxPlatformInfo::Get().CheckOSVersion (10, 13))
|
||||
FilesystemTypeChoice->Append (L"APFS", (void *) VolumeCreationOptions::FilesystemType::APFS);
|
||||
#elif defined (TC_FREEBSD) || defined (TC_SOLARIS)
|
||||
FilesystemTypeChoice->Append (L"UFS", (void *) VolumeCreationOptions::FilesystemType::UFS);
|
||||
#endif
|
||||
@ -81,6 +84,7 @@ namespace VeraCrypt
|
||||
case VolumeCreationOptions::FilesystemType::Ext3: FilesystemTypeChoice->SetStringSelection (L"Linux Ext3"); break;
|
||||
case VolumeCreationOptions::FilesystemType::Ext4: FilesystemTypeChoice->SetStringSelection (L"Linux Ext4"); break;
|
||||
case VolumeCreationOptions::FilesystemType::MacOsExt: FilesystemTypeChoice->SetStringSelection (L"Mac OS Extended"); break;
|
||||
case VolumeCreationOptions::FilesystemType::APFS: FilesystemTypeChoice->SetStringSelection (L"APFS"); break;
|
||||
case VolumeCreationOptions::FilesystemType::UFS: FilesystemTypeChoice->SetStringSelection (L"UFS"); break;
|
||||
|
||||
default:
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include "Platform/Unix/Process.h"
|
||||
#endif
|
||||
|
||||
#include <wx/platinfo.h>
|
||||
#include "Common/SecurityToken.h"
|
||||
#include "Core/RandomNumberGenerator.h"
|
||||
#include "Application.h"
|
||||
@ -785,6 +786,10 @@ namespace VeraCrypt
|
||||
#elif defined (TC_MACOSX)
|
||||
ShowInfo (L" 3) Mac OS Extended"); filesystems.push_back (VolumeCreationOptions::FilesystemType::MacOsExt);
|
||||
ShowInfo (L" 4) exFAT"); filesystems.push_back (VolumeCreationOptions::FilesystemType::exFAT);
|
||||
if (wxPlatformInfo::Get().CheckOSVersion (10, 13))
|
||||
{
|
||||
ShowInfo (L" 5) APFS"); filesystems.push_back (VolumeCreationOptions::FilesystemType::APFS);
|
||||
}
|
||||
#elif defined (TC_FREEBSD) || defined (TC_SOLARIS)
|
||||
ShowInfo (L" 3) UFS"); filesystems.push_back (VolumeCreationOptions::FilesystemType::UFS);
|
||||
#endif
|
||||
@ -881,6 +886,7 @@ namespace VeraCrypt
|
||||
#elif defined (TC_MACOSX)
|
||||
case VolumeCreationOptions::FilesystemType::MacOsExt: fsFormatter = "newfs_hfs"; break;
|
||||
case VolumeCreationOptions::FilesystemType::exFAT: fsFormatter = "newfs_exfat"; break;
|
||||
case VolumeCreationOptions::FilesystemType::APFS: fsFormatter = "newfs_apfs"; break;
|
||||
#elif defined (TC_FREEBSD) || defined (TC_SOLARIS)
|
||||
case VolumeCreationOptions::FilesystemType::UFS: fsFormatter = "newfs" ; break;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user