[ltp] Re: [TRIM]
Uwe Brauer
linux-thinkpad@linux-thinkpad.org
Mon, 22 Jun 2015 22:35:48 +0200
This is a cryptographically signed message in MIME format.
--------------ms090908060908050901010008
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<meta content=3D"text/html; charset=3DUTF-8" http-equiv=3D"Content-Ty=
pe">
<style type=3D"text/css">body p { margin-bottom: 0cm; margin-top: 0pt=
; } </style>
</head>
<body bidimailui-detected-decoding-type=3D"UTF-8" text=3D"#000000"
bgcolor=3D"#FFFFFF">
<div class=3D"moz-cite-prefix">On 06/21/2015 11:36 AM, Luca Fornasari=
wrote:<br>
</div>
<blockquote
cite=3D"mid:CALEH7n8S8wdib4rUKhACY=3DoCxmgZidYnFnvZDD9n9NnLag8Zug@mail.gm=
ail.com"
type=3D"cite">
<div dir=3D"ltr">
<div class=3D"gmail_extra"><br>
<div class=3D"gmail_quote">On Sat, Jun 20, 2015 at 10:43 PM,
Fabrice Bellet <span dir=3D"ltr"><<a
moz-do-not-send=3D"true" href=3D"mailto:fabrice@bellet.in=
fo"
target=3D"_blank">fabrice@bellet.info</a>></span>
wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px=
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">=C2=A0- issue_discards n=
eeds
to be enabled in /etc/lvm/lvm.conf for LVM,<br>
=C2=A0- and allow-discard in /etc/crypttab is needed for
dm-crypt.<br>
<br>
dm-crypt developpers were reluctant about providing this
discard option<br>
due to information disclosure problem, because discarded
blocks can be<br>
blanked by the hardware (this was the case with my Intel
SSD), which<br>
reveals information about which blocks are encrypted, and
which blocks<br>
are not, without having to know the encryption key.<br>
</blockquote>
<div><br>
</div>
<div>dm-crypt does not always honor discard option ... it
depends on distros; as an example Red Hat do not support
it<br>
______________<br>
<a moz-do-not-send=3D"true"
href=3D"https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_=
Linux/7/html/Storage_Administration_Guide/ch-ssd.html">https://access.red=
hat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Storage_Admin=
istration_Guide/ch-ssd.html</a><br>
</div>
<div>21.1 Deployment Consideration<br>
The only DM targets that do not support discards are
dm-snapshot, dm-crypt, and dm-raid45 <br>
-<br>
</div>
</div>
</div>
</div>
</blockquote>
I run trim as cron job, since I don't want to fiddle my fstab.<br>
<br>
(I am using Kubuntu)<br>
</body>
</html>
--------------ms090908060908050901010008
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature
MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJ+DCC
BK8wggOXoAMCAQICEQDgI8sVEoNTia1hbnpUZ2shMA0GCSqGSIb3DQEBCwUAMG8xCzAJBgNV
BAYTAlNFMRQwEgYDVQQKEwtBZGRUcnVzdCBBQjEmMCQGA1UECxMdQWRkVHJ1c3QgRXh0ZXJu
YWwgVFRQIE5ldHdvcmsxIjAgBgNVBAMTGUFkZFRydXN0IEV4dGVybmFsIENBIFJvb3QwHhcN
MTQxMjIyMDAwMDAwWhcNMjAwNTMwMTA0ODM4WjCBmzELMAkGA1UEBhMCR0IxGzAZBgNVBAgT
EkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UEChMRQ09NT0RP
IENBIExpbWl0ZWQxQTA/BgNVBAMTOENPTU9ETyBTSEEtMjU2IENsaWVudCBBdXRoZW50aWNh
dGlvbiBhbmQgU2VjdXJlIEVtYWlsIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC
AQEAibEN2npTGU5wUh28VqYGJre4SeCW51Gr8fBaE0kVo7SMG2C8elFCp3mMpCLfF2FOkdV2
IwoU00oCf7YdCYBupQQ92bq7Fv6hh6kuQ1JDFnyvMlDIpk9a6QjYz5MlnHu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