From 7cbe6b71e50b535d40336385600139cf2f8524ba Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Thu, 23 Aug 2018 20:57:00 +0200 Subject: =?UTF-8?q?Windows:=20implement=20a=20driver=20configuration=20opt?= =?UTF-8?q?ion=20to=20explicitly=20allow=20defragmenting=20non-syst=C3=A8m?= =?UTF-8?q?e=20disques=20by=20Windows=20built-in=20defragmenter=20tool.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Translations/Language.ar.xml | 2 ++ Translations/Language.be.xml | 2 ++ Translations/Language.bg.xml | 2 ++ Translations/Language.ca.xml | 2 ++ Translations/Language.cs.xml | 2 ++ Translations/Language.da.xml | 2 ++ Translations/Language.de.xml | 2 ++ Translations/Language.el.xml | 2 ++ Translations/Language.es.xml | 2 ++ Translations/Language.et.xml | 2 ++ Translations/Language.eu.xml | 2 ++ Translations/Language.fa.xml | 2 ++ Translations/Language.fi.xml | 2 ++ Translations/Language.fr.xml | 2 ++ Translations/Language.hu.xml | 2 ++ Translations/Language.id.xml | 2 ++ Translations/Language.it.xml | 2 ++ Translations/Language.ja.xml | 2 ++ Translations/Language.ka.xml | 2 ++ Translations/Language.ko.xml | 2 ++ Translations/Language.lv.xml | 2 ++ Translations/Language.my.xml | 2 ++ Translations/Language.nl.xml | 2 ++ Translations/Language.nn.xml | 2 ++ Translations/Language.pl.xml | 2 ++ Translations/Language.pt-br.xml | 2 ++ Translations/Language.ro.xml | 2 ++ Translations/Language.ru.xml | 2 ++ Translations/Language.sk.xml | 2 ++ Translations/Language.sl.xml | 2 ++ Translations/Language.sv.xml | 2 ++ Translations/Language.th.xml | 2 ++ Translations/Language.tr.xml | 2 ++ Translations/Language.uk.xml | 2 ++ Translations/Language.uz.xml | 2 ++ Translations/Language.vi.xml | 2 ++ Translations/Language.zh-cn.xml | 2 ++ Translations/Language.zh-hk.xml | 2 ++ Translations/Language.zh-tw.xml | 2 ++ src/Common/Apidrvr.h | 1 + src/Common/Language.xml | 8 +++++--- src/Driver/Ntdriver.c | 4 +++- src/Driver/Ntdriver.h | 1 + src/Mount/Mount.c | 21 +++++++++++++++++++++ src/Mount/Mount.rc | 14 ++++++++------ src/Mount/Resource.h | 3 ++- 46 files changed, 119 insertions(+), 11 deletions(-) diff --git a/Translations/Language.ar.xml b/Translations/Language.ar.xml index 6534b03f..4b03c2d1 100644 --- a/Translations/Language.ar.xml +++ b/Translations/Language.ar.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Select the language to use during the installation: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.be.xml b/Translations/Language.be.xml index bdd0e439..a2dc6267 100644 --- a/Translations/Language.be.xml +++ b/Translations/Language.be.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Select the language to use during the installation: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.bg.xml b/Translations/Language.bg.xml index 15f176fb..ee72fbbc 100644 --- a/Translations/Language.bg.xml +++ b/Translations/Language.bg.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Select the language to use during the installation: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.ca.xml b/Translations/Language.ca.xml index 4da3657f..2a6920d3 100644 --- a/Translations/Language.ca.xml +++ b/Translations/Language.ca.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Trieu idioma a emprar durant la instal·lació: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.cs.xml b/Translations/Language.cs.xml index f5be9ecd..53c7fe9b 100644 --- a/Translations/Language.cs.xml +++ b/Translations/Language.cs.xml @@ -1426,6 +1426,8 @@ Heslo je již dlouhé 64 znaků.\nDalší znaky nejsou již umožněny. Vyberte si jazyk instalace: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.da.xml b/Translations/Language.da.xml index d6f45768..2caa4496 100644 --- a/Translations/Language.da.xml +++ b/Translations/Language.da.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Vælg det sprog der skal vises under installationen: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.de.xml b/Translations/Language.de.xml index 2d2d69ae..aec113e2 100644 --- a/Translations/Language.de.xml +++ b/Translations/Language.de.xml @@ -1428,6 +1428,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Wählen Sie die Sprache aus, die während der Installation benutzt werden soll: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.el.xml b/Translations/Language.el.xml index d2009c72..241aade3 100644 --- a/Translations/Language.el.xml +++ b/Translations/Language.el.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Επιλέξτε τη γλώσσα που θα χρησιμοποιηθεί κατά τη διάρκεια της εγκατάστασης: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.es.xml b/Translations/Language.es.xml index 00d0f071..86cf0364 100644 --- a/Translations/Language.es.xml +++ b/Translations/Language.es.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Seleccione el idioma a utilizar durante la instalación: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.et.xml b/Translations/Language.et.xml index 93250280..0a2c209a 100644 --- a/Translations/Language.et.xml +++ b/Translations/Language.et.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Select the language to use during the installation: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.eu.xml b/Translations/Language.eu.xml index 181b8389..4ad4a74d 100644 --- a/Translations/Language.eu.xml +++ b/Translations/Language.eu.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Select the language to use during the installation: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.fa.xml b/Translations/Language.fa.xml index e0f89f0a..94745bb8 100644 --- a/Translations/Language.fa.xml +++ b/Translations/Language.fa.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Select the language to use during the installation: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.fi.xml b/Translations/Language.fi.xml index 08ba5b65..edd41e72 100644 --- a/Translations/Language.fi.xml +++ b/Translations/Language.fi.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Valitse asentamisen aikana käytettävä kieli: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.fr.xml b/Translations/Language.fr.xml index 6c39153c..d8c312dc 100644 --- a/Translations/Language.fr.xml +++ b/Translations/Language.fr.xml @@ -1425,6 +1425,8 @@ Le mot de passe a déjà atteint sa taille maximale de 64 caractères.\nAucun caractère supplémentaire n'est autorisé. Veuillez sélectionner la langue qui sera utilisée par l'assistant d'installation : ERREUR : La taille du fichier conteneur est plus grande que l'espace libre sur le disque. + Autoriser l'outil de défragmentation de disque de Windows à défragmenter les disques non système + AVERTISSEMENT: La défragmentation des disques non système peut engendrer des fuites de métadonnées ainsi que causer des problèmes avec les volumes cachés s'ils en contiennent.\n\nContinuer? diff --git a/Translations/Language.hu.xml b/Translations/Language.hu.xml index 31a0e15c..66714e9f 100644 --- a/Translations/Language.hu.xml +++ b/Translations/Language.hu.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Válassza ki a telepítés során használandó nyelvet: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.id.xml b/Translations/Language.id.xml index 5d6db3a4..48b844a3 100644 --- a/Translations/Language.id.xml +++ b/Translations/Language.id.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Select the language to use during the installation: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.it.xml b/Translations/Language.it.xml index 5bead74e..dce3e406 100644 --- a/Translations/Language.it.xml +++ b/Translations/Language.it.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Selezionare la lingua da utilizzare durante l'installazione: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.ja.xml b/Translations/Language.ja.xml index 78906cde..b8c5317f 100644 --- a/Translations/Language.ja.xml +++ b/Translations/Language.ja.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. インストール中に利用する言語を選んでください: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.ka.xml b/Translations/Language.ka.xml index e170f522..4b6b6345 100644 --- a/Translations/Language.ka.xml +++ b/Translations/Language.ka.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Select the language to use during the installation: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.ko.xml b/Translations/Language.ko.xml index 4dea57b1..7c7dd5a8 100644 --- a/Translations/Language.ko.xml +++ b/Translations/Language.ko.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Select the language to use during the installation: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.lv.xml b/Translations/Language.lv.xml index f2f8eee5..e855eab6 100644 --- a/Translations/Language.lv.xml +++ b/Translations/Language.lv.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Select the language to use during the installation: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.my.xml b/Translations/Language.my.xml index 8ceac641..e1a3fb29 100644 --- a/Translations/Language.my.xml +++ b/Translations/Language.my.xml @@ -1427,6 +1427,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Select the language to use during the installation: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.nl.xml b/Translations/Language.nl.xml index 53bf42e4..79d1a675 100644 --- a/Translations/Language.nl.xml +++ b/Translations/Language.nl.xml @@ -1426,6 +1426,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Selecteer de taal welke Setup gebruikt tijdens de installatie: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.nn.xml b/Translations/Language.nn.xml index 896a341a..f74c7c6c 100644 --- a/Translations/Language.nn.xml +++ b/Translations/Language.nn.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Velg språket som skal brukes under installasjonen: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.pl.xml b/Translations/Language.pl.xml index 94075d74..a0136198 100644 --- a/Translations/Language.pl.xml +++ b/Translations/Language.pl.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Wybierz jêzyk u¿ywany podczas instalacji: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.pt-br.xml b/Translations/Language.pt-br.xml index afd6eab3..e77bd2d1 100644 --- a/Translations/Language.pt-br.xml +++ b/Translations/Language.pt-br.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Selecione o idioma a ser utilizado durante a instalação: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.ro.xml b/Translations/Language.ro.xml index e5b8d44b..74851b0b 100644 --- a/Translations/Language.ro.xml +++ b/Translations/Language.ro.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Select the language to use during the installation: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.ru.xml b/Translations/Language.ru.xml index 91551291..37774e80 100644 --- a/Translations/Language.ru.xml +++ b/Translations/Language.ru.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Выберите язык, который будет использован в процессе установки: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.sk.xml b/Translations/Language.sk.xml index 77c3c722..08d173e0 100644 --- a/Translations/Language.sk.xml +++ b/Translations/Language.sk.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Select the language to use during the installation: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.sl.xml b/Translations/Language.sl.xml index 6435d0db..6c2982a6 100644 --- a/Translations/Language.sl.xml +++ b/Translations/Language.sl.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Izberite jezik, ki ga želite uporabljati med namestitvijo: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.sv.xml b/Translations/Language.sv.xml index 4398ca22..9d87729f 100644 --- a/Translations/Language.sv.xml +++ b/Translations/Language.sv.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Select the language to use during the installation: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.th.xml b/Translations/Language.th.xml index 9d5f897a..8ec5f65b 100644 --- a/Translations/Language.th.xml +++ b/Translations/Language.th.xml @@ -1426,6 +1426,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Select the language to use during the installation: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.tr.xml b/Translations/Language.tr.xml index 7892ae5f..7ae10851 100644 --- a/Translations/Language.tr.xml +++ b/Translations/Language.tr.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Kurulum süresince kullanýlacak dili seçin: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.uk.xml b/Translations/Language.uk.xml index e6254b7d..3b8b5b66 100644 --- a/Translations/Language.uk.xml +++ b/Translations/Language.uk.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Виберіть мову, яка буде використовуватися під час встановлення: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.uz.xml b/Translations/Language.uz.xml index 038ce378..10b5c667 100644 --- a/Translations/Language.uz.xml +++ b/Translations/Language.uz.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Select the language to use during the installation: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.vi.xml b/Translations/Language.vi.xml index 0b5d0c7a..6aa993da 100644 --- a/Translations/Language.vi.xml +++ b/Translations/Language.vi.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Select the language to use during the installation: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.zh-cn.xml b/Translations/Language.zh-cn.xml index 9b866210..82e7ef1f 100644 --- a/Translations/Language.zh-cn.xml +++ b/Translations/Language.zh-cn.xml @@ -1425,6 +1425,8 @@ 密码已达到其最大长度64个字符。\n不允许附加字符。 选择安装期间要使用的语言: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.zh-hk.xml b/Translations/Language.zh-hk.xml index 48c9a6bd..b1a8b8ea 100644 --- a/Translations/Language.zh-hk.xml +++ b/Translations/Language.zh-hk.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Select the language to use during the installation: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/Translations/Language.zh-tw.xml b/Translations/Language.zh-tw.xml index a44583b1..9966a60b 100644 --- a/Translations/Language.zh-tw.xml +++ b/Translations/Language.zh-tw.xml @@ -1425,6 +1425,8 @@ Password already reached its maximum length of 64 characters.\nNo additional character is allowed. Select the language to use during the installation: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/src/Common/Apidrvr.h b/src/Common/Apidrvr.h index 1230fc43..2c436bf9 100644 --- a/src/Common/Apidrvr.h +++ b/src/Common/Apidrvr.h @@ -412,5 +412,6 @@ typedef struct #define TC_DRIVER_CONFIG_CACHE_BOOT_PIM 0x40 #define VC_DRIVER_CONFIG_ALLOW_NONSYS_TRIM 0x80 #define VC_DRIVER_CONFIG_BLOCK_SYS_TRIM 0x100 +#define VC_DRIVER_CONFIG_ALLOW_WINDOWS_DEFRAG 0x200 #endif /* _WIN32 */ diff --git a/src/Common/Language.xml b/src/Common/Language.xml index 9c0e4fae..88b5e0fd 100644 --- a/src/Common/Language.xml +++ b/src/Common/Language.xml @@ -1421,10 +1421,12 @@ Block TRIM command on system partition/drive ERROR: Windows EFI system loader could not be located on the disk. Operation will be aborted. It is currently not possible to encrypt a system if SecureBoot is enabled and if VeraCrypt custom keys are not loaded into the machine firmware. SecureBoot needs to be disabled in the BIOS configuration in order to allow system encryption to proceed. - Pasted text truncated because the password maximum length is 64 characters - Password already reached its maximum length of 64 characters.\nNo additional character is allowed. - Select the language to use during the installation: + Pasted text truncated because the password maximum length is 64 characters + Password already reached its maximum length of 64 characters.\nNo additional character is allowed. + Select the language to use during the installation: ERROR: The size of the file container is larger than the available free space on disk. + Allow Windows Disk Defragmenter to defragment non-system partition/drive + WARNING: Defragmenting non-system partitions/drives may leak metadata about their content or cause issues with hidden volumes they may contain.\n\nContinue? diff --git a/src/Driver/Ntdriver.c b/src/Driver/Ntdriver.c index 6e774724..e8fb2824 100644 --- a/src/Driver/Ntdriver.c +++ b/src/Driver/Ntdriver.c @@ -129,6 +129,7 @@ BOOL CacheBootPassword = FALSE; BOOL CacheBootPim = FALSE; BOOL NonAdminSystemFavoritesAccessDisabled = FALSE; BOOL BlockSystemTrimCommand = FALSE; +BOOL AllowWindowsDefrag = FALSE; static size_t EncryptionThreadPoolFreeCpuCountLimit = 0; static BOOL SystemFavoriteVolumeDirty = FALSE; static BOOL PagingFileCreationPrevented = FALSE; @@ -1265,7 +1266,7 @@ NTSTATUS ProcessVolumeDeviceControlIrp (PDEVICE_OBJECT DeviceObject, PEXTENSION Dump ("ProcessVolumeDeviceControlIrp (IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS)\n"); // Vista's and Windows 10 filesystem defragmenter fails if IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS does not succeed. if (!(OsMajorVersion == 6 && OsMinorVersion == 0) - && !(OsMajorVersion == 10 && EnableExtendedIoctlSupport && Extension->bRawDevice) + && !(OsMajorVersion == 10 && AllowWindowsDefrag && Extension->bRawDevice) ) { Irp->IoStatus.Status = STATUS_INVALID_DEVICE_REQUEST; @@ -4249,6 +4250,7 @@ NTSTATUS ReadRegistryConfigFlags (BOOL driverEntry) EnableExtendedIoctlSupport = (flags & TC_DRIVER_CONFIG_ENABLE_EXTENDED_IOCTL)? TRUE : FALSE; AllowTrimCommand = (flags & VC_DRIVER_CONFIG_ALLOW_NONSYS_TRIM)? TRUE : FALSE; + AllowWindowsDefrag = (flags & VC_DRIVER_CONFIG_ALLOW_WINDOWS_DEFRAG)? TRUE : FALSE; } else status = STATUS_INVALID_PARAMETER; diff --git a/src/Driver/Ntdriver.h b/src/Driver/Ntdriver.h index b679952a..2479d45b 100644 --- a/src/Driver/Ntdriver.h +++ b/src/Driver/Ntdriver.h @@ -124,6 +124,7 @@ extern BOOL VolumeClassFilterRegistered; extern BOOL CacheBootPassword; extern BOOL CacheBootPim; extern BOOL BlockSystemTrimCommand; +extern BOOL AllowWindowsDefrag; /* Helper macro returning x seconds in units of 100 nanoseconds */ #define WAIT_SECONDS(x) ((x)*10000000) diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c index 1d80e030..aefafe94 100644 --- a/src/Mount/Mount.c +++ b/src/Mount/Mount.c @@ -10856,6 +10856,16 @@ static BOOL CALLBACK PerformanceSettingsDlgProc (HWND hwndDlg, UINT msg, WPARAM CheckDlgButton (hwndDlg, IDC_ENABLE_HARDWARE_ENCRYPTION, (driverConfig & TC_DRIVER_CONFIG_DISABLE_HARDWARE_ENCRYPTION) ? BST_UNCHECKED : BST_CHECKED); CheckDlgButton (hwndDlg, IDC_ENABLE_EXTENDED_IOCTL_SUPPORT, (driverConfig & TC_DRIVER_CONFIG_ENABLE_EXTENDED_IOCTL) ? BST_CHECKED : BST_UNCHECKED); CheckDlgButton (hwndDlg, IDC_ALLOW_TRIM_NONSYS_SSD, (driverConfig & VC_DRIVER_CONFIG_ALLOW_NONSYS_TRIM) ? BST_CHECKED : BST_UNCHECKED); + // checkbox for Windows Defragmenter only usuable on Windows 10 + // on previous version, we can not control Windows defragmenter so + // this settings is always checked. + if (CurrentOSMajor >= 10) + CheckDlgButton (hwndDlg, IDC_ALLOW_WINDOWS_DEFRAG, (driverConfig & VC_DRIVER_CONFIG_ALLOW_WINDOWS_DEFRAG) ? BST_CHECKED : BST_UNCHECKED); + else + { + CheckDlgButton (hwndDlg, IDC_ALLOW_WINDOWS_DEFRAG, BST_CHECKED); + EnableWindow (GetDlgItem (hwndDlg, IDC_ALLOW_WINDOWS_DEFRAG), FALSE); + } SYSTEM_INFO sysInfo; GetSystemInfo (&sysInfo); @@ -10914,6 +10924,7 @@ static BOOL CALLBACK PerformanceSettingsDlgProc (HWND hwndDlg, UINT msg, WPARAM BOOL disableHW = !IsDlgButtonChecked (hwndDlg, IDC_ENABLE_HARDWARE_ENCRYPTION); BOOL enableExtendedIOCTL = IsDlgButtonChecked (hwndDlg, IDC_ENABLE_EXTENDED_IOCTL_SUPPORT); BOOL allowTrimCommand = IsDlgButtonChecked (hwndDlg, IDC_ALLOW_TRIM_NONSYS_SSD); + BOOL allowWindowsDefrag = IsDlgButtonChecked (hwndDlg, IDC_ALLOW_WINDOWS_DEFRAG); try { @@ -10951,6 +10962,8 @@ static BOOL CALLBACK PerformanceSettingsDlgProc (HWND hwndDlg, UINT msg, WPARAM SetDriverConfigurationFlag (TC_DRIVER_CONFIG_DISABLE_HARDWARE_ENCRYPTION, disableHW); SetDriverConfigurationFlag (TC_DRIVER_CONFIG_ENABLE_EXTENDED_IOCTL, enableExtendedIOCTL); SetDriverConfigurationFlag (VC_DRIVER_CONFIG_ALLOW_NONSYS_TRIM, allowTrimCommand); + if (CurrentOSMajor >= 10) + SetDriverConfigurationFlag (VC_DRIVER_CONFIG_ALLOW_WINDOWS_DEFRAG, allowWindowsDefrag); DWORD bytesReturned; if (!DeviceIoControl (hDriver, TC_IOCTL_REREAD_DRIVER_CONFIG, NULL, 0, NULL, 0, &bytesReturned, NULL)) @@ -10982,6 +10995,14 @@ static BOOL CALLBACK PerformanceSettingsDlgProc (HWND hwndDlg, UINT msg, WPARAM } return 1; + case IDC_ALLOW_WINDOWS_DEFRAG: + if (IsDlgButtonChecked (hwndDlg, IDC_ALLOW_WINDOWS_DEFRAG) + && AskWarnYesNo ("CONFIRM_ALLOW_WINDOWS_DEFRAG", hwndDlg) == IDNO) + { + CheckDlgButton (hwndDlg, IDC_ALLOW_WINDOWS_DEFRAG, BST_UNCHECKED); + } + return 1; + case IDC_ENABLE_HARDWARE_ENCRYPTION: if (!IsDlgButtonChecked (hwndDlg, IDC_ENABLE_HARDWARE_ENCRYPTION) && AskWarnYesNo ("CONFIRM_SETTING_DEGRADES_PERFORMANCE", hwndDlg) == IDNO) diff --git a/src/Mount/Mount.rc b/src/Mount/Mount.rc index 07b5be0c..a0eaf661 100644 --- a/src/Mount/Mount.rc +++ b/src/Mount/Mount.rc @@ -309,7 +309,7 @@ BEGIN DEFPUSHBUTTON "OK",IDOK,255,158,50,14 END -IDD_PERFORMANCE_SETTINGS DIALOGEX 0, 0, 371, 253 +IDD_PERFORMANCE_SETTINGS DIALOGEX 0, 0, 371, 265 STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "VeraCrypt - Performance Options" FONT 8, "MS Shell Dlg", 400, 0, 0x1 @@ -327,13 +327,15 @@ BEGIN "Button",BS_AUTOCHECKBOX | WS_TABSTOP,18,198,337,10 CONTROL "Allow TRIM command for non-system SSD partition/drive",IDC_ALLOW_TRIM_NONSYS_SSD, "Button",BS_AUTOCHECKBOX | WS_TABSTOP,18,212,337,10 - PUSHBUTTON "&Benchmark",IDC_BENCHMARK,7,232,59,14 - DEFPUSHBUTTON "OK",IDOK,257,232,50,14 - PUSHBUTTON "Cancel",IDCANCEL,314,232,50,14 + PUSHBUTTON "&Benchmark",IDC_BENCHMARK,7,244,59,14 + DEFPUSHBUTTON "OK",IDOK,257,244,50,14 + PUSHBUTTON "Cancel",IDCANCEL,314,244,50,14 LTEXT "Processor (CPU) in this computer supports hardware acceleration for AES:",IDT_HW_AES_SUPPORTED_BY_CPU,18,23,273,9 GROUPBOX "Hardware Acceleration",IDT_ACCELERATION_OPTIONS,7,6,355,74 GROUPBOX "Thread-Based Parallelization",IDT_PARALLELIZATION_OPTIONS,7,84,355,93 - GROUPBOX "Driver Configuration",IDT_DRIVER_OPTIONS,7,183,357,44 + GROUPBOX "Driver Configuration",IDT_DRIVER_OPTIONS,7,183,357,58 + CONTROL "Allow Windows Disk Defragmenter to defragment non-system partition/drive",IDC_ALLOW_WINDOWS_DEFRAG, + "Button",BS_AUTOCHECKBOX | WS_TABSTOP,18,226,337,10 END IDD_FAVORITE_VOLUMES DIALOGEX 0, 0, 380, 368 @@ -500,7 +502,7 @@ BEGIN LEFTMARGIN, 7 RIGHTMARGIN, 364 TOPMARGIN, 7 - BOTTOMMARGIN, 246 + BOTTOMMARGIN, 258 END IDD_FAVORITE_VOLUMES, DIALOG diff --git a/src/Mount/Resource.h b/src/Mount/Resource.h index 94d57108..d66e1282 100644 --- a/src/Mount/Resource.h +++ b/src/Mount/Resource.h @@ -189,6 +189,7 @@ #define IDT_ADVANCED_OPTIONS 1166 #define IDC_ALLOW_TRIM_NONSYS_SSD 1167 #define IDC_BLOCK_SYSENC_TRIM 1168 +#define IDC_ALLOW_WINDOWS_DEFRAG 1169 #define IDM_HELP 40001 #define IDM_ABOUT 40002 #define IDM_UNMOUNT_VOLUME 40003 @@ -265,7 +266,7 @@ #define _APS_NO_MFC 1 #define _APS_NEXT_RESOURCE_VALUE 120 #define _APS_NEXT_COMMAND_VALUE 40069 -#define _APS_NEXT_CONTROL_VALUE 1169 +#define _APS_NEXT_CONTROL_VALUE 1170 #define _APS_NEXT_SYMED_VALUE 101 #endif #endif -- cgit v1.2.3