From mboxrd@z Thu Jan 1 00:00:00 1970 From: Milan Broz Subject: Re: fstrim discarding too many or wrong blocks on Linux 5.1, leading to data loss Date: Mon, 20 May 2019 18:45:04 +0200 Message-ID: References: <297da4cbe20235080205719805b08810@bi-co.net> <8C31D41C-9608-4A65-B543-8ABCC0B907A0@bi-co.net> <158a3491-e4d2-d905-7f58-11a15bddcd70@gmx.com> <9D4ECE0B-C9DD-4BAD-A764-9DE2FF2A10C7@bi-co.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Language: en-US Sender: linux-btrfs-owner@vger.kernel.org To: Andrea Gelmini , =?UTF-8?Q?Michael_La=c3=9f?= Cc: Qu Wenruo , Chris Murphy , Btrfs BTRFS , dm-devel@redhat.com List-Id: dm-devel.ids On 20/05/2019 16:53, Andrea Gelmini wrote: ... > Also, changing crypttab: > root@glet:~# cat /etc/crypttab > sda6_crypt UUID=fe03e2e6-b8b1-4672-8a3e-b536ac4e1539 none luks,discard > > removing discard didn't solve the issue. This is very strange, disabling discard should reject every discard IO on the dmcrypt layer. Are you sure it was really disabled? Note, it is the root filesystem, so you have to regenerate initramfs to update crypttab inside it. Could you paste "dmsetup table" and "lsblk -D" to verify that discard flag is not there? (I mean dmsetup table with the zeroed key, as a default and safe output.) Milan