diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2023-06-28 00:47:58 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2023-06-28 00:47:58 +0200 |
commit | 579ce2fd31f01b0befba947ed863ed1d5e4be3f0 (patch) | |
tree | 61ccfe4d3a3f21ea24ffc1a34c87b68053eb080e /src/Common/Fat.h | |
parent | db12703e9b78192cc5dfc8c79b8d129290aa33f2 (diff) | |
download | VeraCrypt-579ce2fd31f01b0befba947ed863ed1d5e4be3f0.tar.gz VeraCrypt-579ce2fd31f01b0befba947ed863ed1d5e4be3f0.zip |
Windows: Better handling of quick format for file container
We write a zeroed sector every 128 MiB, leaving other sectors untouched
This helps users visualize the progress of actual file creation while forcing Windows to allocate the disk space of each 128 MiB chunk immediately, otherwise, Windows would delay the allocation until we write the backup header at the end of the volume which would make the user think that the format process has stalled after progress bar reaches 100%.
Diffstat (limited to 'src/Common/Fat.h')
-rw-r--r-- | src/Common/Fat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Common/Fat.h b/src/Common/Fat.h index 375b9dc2..b2457be2 100644 --- a/src/Common/Fat.h +++ b/src/Common/Fat.h @@ -66,4 +66,4 @@ struct msdos_boot_sector void GetFatParams ( fatparams *ft ); void PutBoot ( fatparams *ft , unsigned char *boot ); -int FormatFat (void* hwndDlg, unsigned __int64 startSector, fatparams * ft, void * dev, PCRYPTO_INFO cryptoInfo, BOOL quickFormat); +int FormatFat (void* hwndDlg, unsigned __int64 startSector, fatparams * ft, void * dev, PCRYPTO_INFO cryptoInfo, BOOL quickFormat, BOOL bDevice); |