From mboxrd@z Thu Jan 1 00:00:00 1970 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 MDmQFPc1BTRj for ; Sat, 18 Jan 2014 20:36:43 +0100 (CET) Received: from v6.tansi.org (unknown [87.118.116.4]) by mail.saout.de (Postfix) with ESMTP for ; Sat, 18 Jan 2014 20:36:43 +0100 (CET) Received: from gatewagner.dyndns.org (77-57-44-24.dclient.hispeed.ch [77.57.44.24]) by v6.tansi.org (Postfix) with ESMTPA id 141A820DC239 for ; Sat, 18 Jan 2014 20:36:43 +0100 (CET) Date: Sat, 18 Jan 2014 20:36:42 +0100 From: Arno Wagner Message-ID: <20140118193642.GA12872@tansi.org> References: <20140118192446.GB6848@tansi.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20140118192446.GB6848@tansi.org> Subject: Re: [dm-crypt] Advanced format (4k sector disks) and dm-crypt List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de On Sat, Jan 18, 2014 at 20:24:47 CET, Arno Wagner wrote: > On Sat, Jan 18, 2014 at 15:14:29 CET, Gar=F0ar Arnarsson wrote: > > Did a quick search but came up empty handed. > >=20 > > 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. > >=20 > > 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. >=20 > Do not worry. Dm-crypt uses 512B sectors, but there is only a=20 > negligible performance loss. This matters far, far more on the=20 > filesystem layer. If that layer does it right, dm-crypt will=20 > allways process 8 x 512B at a time, as it does process exacly=20 > what the uppeer layer requests. And alignment in LUKS is done > so that 4k sectors will not be broken up for the data area. >=20 > 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. >=20 > Arno Just added Item 2.17 to the FAQ.=20 Arno --=20 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