Skip to contentSkip to conversation

removing hard coded 512 byte size from direct I/O.

RFC New jim owens 1 participant 1 message Mar 5, 2010 Btrfs file system

lore
Share & tools
lore

jim owens

author
#0 lore raw

cover removing hard coded 512 byte size from direct I/O.

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