From mboxrd@z Thu Jan 1 00:00:00 1970 From: jim owens Subject: [RFC 0/2] removing hard coded 512 byte size from direct I/O. Date: Fri, 05 Mar 2010 14:42:12 -0500 Message-ID: <4B915E94.9090602@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 To: linux-btrfs , Chris Mason , Josef Bacik Return-path: List-ID: The following patches add the field for tracking the smallest device block size in the filesystem and using it instead of the hard coded 512 byte values in dio.c. I also implemented a simpler test for user misalignment on devices with larger block sizes. It passes fsx, but I have not tested mixed device block sizes or user vector edge cases. If this code is acceptable, I'll do edge tests before I send the merged V3 dio.c. jim