DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <mbroz@redhat.com>
To: Sven Eschenberg <sven@whgl.uni-frankfurt.de>
Cc: dm-crypt@saout.de
Subject: Re: [dm-crypt] Wrong behavior?
Date: Wed, 14 Jul 2010 09:58:05 +0200	[thread overview]
Message-ID: <4C3D6E0D.6020802@redhat.com> (raw)
In-Reply-To: <1279059451.867.23.camel@Koma-Station.localdomain>

On 07/14/2010 12:17 AM, Sven Eschenberg wrote:
> Well, yet it gives me the chance to use the RNG of my choice, might it
> be a HW-RNG in a TPM or chipset, in software of my choice or
> whatsoever ;-). Well, maybe I would want to play with own RNGs and no, I
> am not gonna use any PRNG using linear congruences for that matter :-).

You can add second keyslot using keyfile and remove former afterwards as workaround.
But if you want to do such low level operations, maybe you want to use dm-crypt
directly, without luks...

> Humm, I was just thinking, obviously cryptsetup uses the readahead of
> the device as a measure for alignment.

No, readahead has nothing to do with device alignment. We are using device topology
as defined by stacking device, this approach is now supported by all
tools (fdisk & partitioning toos, lvm2, mdadm, cryptsetup).

If topology IOCTLs are not supported (kernels <2.6.32 iirc) it simply defaults
to alignment of 4k.

MD of course provides proper value according to configured mode (chunks etc).

Readahead is set the same as underlying device, readahead is dynamic property
of device (you can change it using blockdev --setra anytime) while alignment
is calculated during device format and cannot be changed later.)

Milan

  parent reply	other threads:[~2010-07-14  7:58 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-13 20:51 [dm-crypt] Wrong behavior? Sven Eschenberg
2010-07-13 21:12 ` Milan Broz
2010-07-13 22:17   ` Sven Eschenberg
     [not found]     ` <AANLkTilvdewwcdzdm2uX6go9q2dahLX7Fes-lwDNOkvU@mail.gmail.com>
2010-07-14  6:07       ` MkFly
2010-07-14  6:38         ` Heinz Diehl
2010-07-14  8:20           ` Milan Broz
2010-07-14 10:09           ` Arno Wagner
2010-07-14 18:09             ` Christoph Anton Mitterer
2010-07-14  7:58     ` Milan Broz [this message]
2010-07-14 11:39       ` Sven Eschenberg
2010-07-14 11:52         ` Milan Broz
2010-07-14 12:07           ` Sven Eschenberg
2010-07-14 12:13             ` Arno Wagner
2010-07-14 12:53             ` 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=4C3D6E0D.6020802@redhat.com \
    --to=mbroz@redhat.com \
    --cc=dm-crypt@saout.de \
    --cc=sven@whgl.uni-frankfurt.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