All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arno Wagner <arno@wagner.name>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] Advanced format (4k sector disks) and dm-crypt
Date: Sat, 18 Jan 2014 20:36:42 +0100	[thread overview]
Message-ID: <20140118193642.GA12872@tansi.org> (raw)
In-Reply-To: <20140118192446.GB6848@tansi.org>

On Sat, Jan 18, 2014 at 20:24:47 CET, Arno Wagner wrote:
> On Sat, Jan 18, 2014 at 15:14:29 CET, Garðar Arnarsson wrote:
> > Did a quick search but came up empty handed.
> > 
> > I'm wondering if there is anything special that needs to be passed to
> > be able to use dm-crypt (cryptsetup) with 4096 byte sector drives.
> > 
> > I know md, lvm, partitions, filesystems all need to have special
> > triggers for 4K drives (even thouh I think it's done automatically for
> > all of them nowadays) but I see no mention of dm-crypt/cryptsetup.
> 
> Do not worry. Dm-crypt uses 512B sectors, but there is only a 
> negligible performance loss. This matters far, far more on the 
> filesystem layer. If that layer does it right, dm-crypt will 
> allways process 8 x 512B at a time, as it does process exacly 
> what the uppeer layer requests. And alignment in LUKS is done
> so that 4k sectors will not be broken up for the data area.
> 
> Hence this is not a concern and that is the reason it is
> not mentioned. I think I will add an FAQ entry for this.
> 
> Arno

Just added Item 2.17 to the FAQ. 

Arno
-- 
Arno Wagner,     Dr. sc. techn., Dipl. Inform.,    Email: arno@wagner.name
GnuPG: ID: CB5D9718  FP: 12D6 C03B 1B30 33BB 13CF  B774 E35C 5FA1 CB5D 9718
----
There are two ways of constructing a software design: One way is to make it
so simple that there are obviously no deficiencies, and the other way is to
make it so complicated that there are no obvious deficiencies. The first
method is far more difficult.  --Tony Hoare

  reply	other threads:[~2014-01-18 19:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-18 14:14 [dm-crypt] Advanced format (4k sector disks) and dm-crypt Garðar Arnarsson
2014-01-18 19:24 ` Arno Wagner
2014-01-18 19:36   ` Arno Wagner [this message]
2014-01-19 18:07     ` Garðar Arnarsson
2014-01-20 12:20       ` Arno Wagner

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=20140118193642.GA12872@tansi.org \
    --to=arno@wagner.name \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.