DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] 4k block size in dm-crypt
@ 2012-12-07  3:58 Vadim Finkelstein
  2012-12-07 11:53 ` Milan Broz
  0 siblings, 1 reply; 2+ messages in thread
From: Vadim Finkelstein @ 2012-12-07  3:58 UTC (permalink / raw)
  To: dm-crypt

[-- Attachment #1: Type: text/plain, Size: 345 bytes --]

Regarding this:
http://www.saout.de/pipermail/dm-crypt/2011-April/001673.html

Was the issue of 4k block sizes ever solved? I have applied a 4k block size
patch to my dm-crypt, but now seeing the same problem - if the data is read
back with block size of 8192 (for example) it does not match what was
previously written with block size of 4092.

[-- Attachment #2: Type: text/html, Size: 472 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dm-crypt] 4k block size in dm-crypt
  2012-12-07  3:58 [dm-crypt] 4k block size in dm-crypt Vadim Finkelstein
@ 2012-12-07 11:53 ` Milan Broz
  0 siblings, 0 replies; 2+ messages in thread
From: Milan Broz @ 2012-12-07 11:53 UTC (permalink / raw)
  To: Vadim Finkelstein; +Cc: dm-crypt

On 12/07/2012 04:58 AM, Vadim Finkelstein wrote:
> Regarding this: 
> http://www.saout.de/pipermail/dm-crypt/2011-April/001673.html
> 
> Was the issue of 4k block sizes ever solved? I have applied a 4k
> block size patch to my dm-crypt, but now seeing the same problem - if
> the data is read back with block size of 8192 (for example) it does
> not match what was previously written with block size of 4092.

What issue? The patch is not upstream and cannot be used wihout
additional changes.

If we add block-size parameter, we must reject all unaligned and
partial block reads to avoid this problem (and this part is still
missing, set proper io hinds for device and announce proper block size).

I would like to have such parameter one day in dmcrypt, but still
not sure what's the real use case (except workaround slow hw accelerators).

(And AES-NI and clones works quite well here with 512 block.)

Milan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-12-07 11:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-07  3:58 [dm-crypt] 4k block size in dm-crypt Vadim Finkelstein
2012-12-07 11:53 ` Milan Broz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox