Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vp4I31vq92e3 for ; Wed, 9 Nov 2011 21:25:21 +0100 (CET) Received: from vserver3082.vserver-on.de (vserver3082.vserver-on.de [109.73.50.87]) by mail.saout.de (Postfix) with ESMTP for ; Wed, 9 Nov 2011 21:25:21 +0100 (CET) Received: from [10.0.0.2] (dslb-088-066-159-250.pools.arcor-ip.net [88.66.159.250]) by vserver3082.vserver-on.de (Postfix) with ESMTPSA id E729414E0AF for ; Wed, 9 Nov 2011 21:25:20 +0100 (CET) Message-ID: <4EBAE1B0.2030205@alexanderkoch.net> Date: Wed, 09 Nov 2011 21:25:20 +0100 From: Alexander Koch MIME-Version: 1.0 References: <4EBAC310.6010104@alexanderkoch.net> <4EBACC60.4010907@redhat.com> In-Reply-To: <4EBACC60.4010907@redhat.com> Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: 8bit Subject: Re: [dm-crypt] Testing TRIM with hdparm on dm-crypt List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Hi Milan, thanks for your detailed explanations :) After adding the offsets for LUKS and LVM I realized that I have another partition residing logically "in front" of the PV: $ lsblk /dev/sdd -f NAME FSTYPE LABEL MOUNTPOINT sdd ├─sdd1 ext2 boot /boot └─sdd2 LVM2_member ├─m4vg0-root (dm-0) crypto_LUKS │ └─root-crypt (dm-4) ext4 root-crypt / (..) Adding its size in blocks finally resulted in the correct range, and I saw the random noise of the encrypted testfile disappear after synced `rm` invocation. > You should be also able to trace discard (and other) block requests > using blktrace/btrace, this should be really more user friendly :) I tried blktrace but didn't know which event to track. Supported list includes READ, WRITE, BARRIER, SYNC, QUEUE, REQUEUE, ISSUE, COMPLETE, FS and PC. Thanks again for your help! :) Kind regards, lynix