mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 19:08:26 -06:00
Linux: Perform a quick NTFS formatting by adding the "-f" switch to mkfs.ntfs. Without this, the creation of big NTFS volumes takes ages. The code already takes care of the empty sectors by encrypting them with different key to randomize plaintext.
This commit is contained in:
@@ -478,6 +478,10 @@ namespace VeraCrypt
|
||||
if (SelectedFilesystemType == VolumeCreationOptions::FilesystemType::MacOsExt && VolumeSize >= 10 * BYTES_PER_MB)
|
||||
args.push_back ("-J");
|
||||
|
||||
// Perform a quick NTFS formatting
|
||||
if (SelectedFilesystemType == VolumeCreationOptions::FilesystemType::NTFS)
|
||||
args.push_back ("-f");
|
||||
|
||||
args.push_back (string (virtualDevice));
|
||||
|
||||
Process::Execute (fsFormatter, args);
|
||||
|
||||
Reference in New Issue
Block a user