1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-12 03:18:26 -06:00

Windows: Implement TRIM support for non-system SSD partitions/drives and add driver option to enable it (TRIM is disabled by default for non-system SSD partitions/drives)

This commit is contained in:
Mounir IDRASSI
2018-03-04 18:48:16 +01:00
parent 5065116e56
commit cd59d5364f
8 changed files with 341 additions and 43 deletions

View File

@@ -410,5 +410,6 @@ typedef struct
#define TC_DRIVER_CONFIG_ENABLE_EXTENDED_IOCTL 0x10
#define TC_DRIVER_CONFIG_DISABLE_EVIL_MAID_ATTACK_DETECTION 0x20
#define TC_DRIVER_CONFIG_CACHE_BOOT_PIM 0x40
#define VC_DRIVER_CONFIG_ALLOW_NONSYS_TRIM 0x80
#endif /* _WIN32 */

View File

@@ -23,6 +23,8 @@
#define VOLUME_ID_SIZE SHA256_DIGESTSIZE
#define ALIGN_VALUE(value, alignment) (((alignment) == 0)? (value) : (((value) + ((alignment) - 1)) & ~((alignment) - 1)))
typedef enum
{
// IMPORTANT: If you add a new item here, update IsOSVersionAtLeast().