LINUX.ORG.RU

История изменений

Исправление QsUPt7S, (текущая версия) :

А если LUKS?

Я шифрованием не пользуюсь, но быстрый просмотр мануалов говорит, что в файле crypttab можно задать опцию монтирования discard, а cryptsetup open поддерживает опцию --allow-discards:

--allow-discards
	Allow the use of discard (TRIM) requests for the device. This is also not supported for LUKS2 devices with data integrity protection.

	WARNING: This command can have a negative security impact because it can make filesystem-level operations visible on the physical device. For example, information leaking filesystem type, used space, etc. may be extractable from the physical device if the discarded blocks can be located later. If in doubt, do not use it.

	A kernel version of 3.1 or later is needed. For earlier kernels, this option is ignored.

Исходная версия QsUPt7S, :

А если LUKS?

Я шифрованием не пользуюсь, но быстрый просмотр мануалов говорит, что в файле crypttab можно задать опцию монтирования discard, а cryptsetup open поддерживает опцию --allow-discard:

--allow-discards
	Allow the use of discard (TRIM) requests for the device. This is also not supported for LUKS2 devices with data integrity protection.

	WARNING: This command can have a negative security impact because it can make filesystem-level operations visible on the physical device. For example, information leaking filesystem type, used space, etc. may be extractable from the physical device if the discarded blocks can be located later. If in doubt, do not use it.

	A kernel version of 3.1 or later is needed. For earlier kernels, this option is ignored.