VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2018-09-20 10:52:12 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2018-09-21 10:39:10 +0200
commit0557cac9cf416c02624321c197ffba7067d9b83b (patch)
treefd2d690e0641ddb6f198b97f895a17fd994d6043
parent081287fc0a9494ac45c6ca5efdf164c77f835117 (diff)
downloadVeraCrypt-0557cac9cf416c02624321c197ffba7067d9b83b.tar.gz
VeraCrypt-0557cac9cf416c02624321c197ffba7067d9b83b.zip
Windows: don't use quick format by default when creating file containers using command line and add a switch to enable quick format explicitly in command line
-rw-r--r--src/Format/Tcformat.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Format/Tcformat.c b/src/Format/Tcformat.c
index 4274e377..5f77c770 100644
--- a/src/Format/Tcformat.c
+++ b/src/Format/Tcformat.c
@@ -249,6 +249,7 @@ int CmdVolumePim = 0;
int CmdVolumeFilesystem = FILESYS_NONE;
unsigned __int64 CmdVolumeFileSize = 0;
BOOL CmdSparseFileSwitch = FALSE;
+BOOL CmdQuickFormat = FALSE;
BOOL bForceOperation = FALSE;
@@ -6192,7 +6193,7 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
}
}
- quickFormat = TRUE;
+ quickFormat = CmdQuickFormat;
if (!GetDiskFreeSpaceEx (root, &free, 0, 0))
{
@@ -8947,6 +8948,7 @@ void ExtractCommandLine (HWND hwndDlg, wchar_t *lpszCommandLine)
OptionDynamic,
OptionForce,
OptionNoSizeCheck,
+ OptionQuickFormat,
};
argument args[]=
@@ -8968,6 +8970,7 @@ void ExtractCommandLine (HWND hwndDlg, wchar_t *lpszCommandLine)
{ OptionDynamic, L"/dynamic", NULL, FALSE },
{ OptionForce, L"/force", NULL, FALSE },
{ OptionNoSizeCheck, L"/nosizecheck", NULL, FALSE },
+ { OptionQuickFormat, L"/quick", NULL, FALSE },
// Internal
{ CommandResumeSysEncLogOn, L"/acsysenc", L"/a", TRUE },
@@ -9320,6 +9323,10 @@ void ExtractCommandLine (HWND hwndDlg, wchar_t *lpszCommandLine)
bDontCheckFileContainerSize = TRUE;
break;
+ case OptionQuickFormat:
+ CmdQuickFormat = TRUE;
+ break;
+
case OptionHistory:
{
wchar_t szTmp[8] = {0};