VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-02-13 13:40:22 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-02-13 15:18:00 (GMT)
commit544c55debc4d1a99588de099ae2eede3d8f24585 (patch)
tree08e44e0ea7ac44d876bf3a43b81ab5d523b8232e /src
parent2b826843de54ee8db8d514a1f118904cd6128bfe (diff)
downloadVeraCrypt-544c55debc4d1a99588de099ae2eede3d8f24585.zip
VeraCrypt-544c55debc4d1a99588de099ae2eede3d8f24585.tar.gz
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.
Diffstat (limited to 'src')
-rw-r--r--src/Main/Forms/VolumeCreationWizard.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Main/Forms/VolumeCreationWizard.cpp b/src/Main/Forms/VolumeCreationWizard.cpp
index bff459a..214c041 100644
--- a/src/Main/Forms/VolumeCreationWizard.cpp
+++ b/src/Main/Forms/VolumeCreationWizard.cpp
@@ -477,6 +477,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));