lkml.org 
[lkml]   [2012]   [Oct]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC, PATCH] Extensible AIO interface
From
Date
>>>>> "Kent" == Kent Overstreet <koverstreet@google.com> writes:

>> Hmm, careful here. I think that in DIF/DIX the checksums are
>> per-sector, not per IO, right? That'd mean that the PAGE_SIZE attr
>> limit in this patch would be magically creating different max IO size
>> limits on different architectures. That doesn't seem great.

Kent> Not just per sector, Per hardware sector.

Per logical block (or for some devices less).


Kent> For passing around checksums userspace would have to find out the
Kent> hardware sector size and checksum type/size via a different
Kent> interface,

The relevant information is already exported in sysfs. Including the
format, how many bytes of integrity metadata go with how many bytes of
data, etc.

--
Martin K. Petersen Oracle Linux Engineering


\
 
 \ /
  Last update: 2012-10-03 01:21    [W:0.120 / U:3.900 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site