DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Koch <mail@alexanderkoch.net>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] Testing TRIM with hdparm on dm-crypt
Date: Wed, 09 Nov 2011 21:25:20 +0100	[thread overview]
Message-ID: <4EBAE1B0.2030205@alexanderkoch.net> (raw)
In-Reply-To: <4EBACC60.4010907@redhat.com>

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

  reply	other threads:[~2011-11-09 20:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-09 18:14 [dm-crypt] Testing TRIM with hdparm on dm-crypt Alexander Koch
2011-11-09 18:54 ` Milan Broz
2011-11-09 20:25   ` Alexander Koch [this message]
2011-11-09 20:58     ` Milan Broz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EBAE1B0.2030205@alexanderkoch.net \
    --to=mail@alexanderkoch.net \
    --cc=dm-crypt@saout.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox