Skip to content

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

jim owens linux-btrfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Btrfs: add multi-device minimum logical block size for direct I/O.fs/btrfs/volumes.c fs/btrfs/volumes.h+26 -10 replies
2/2Btrfs: change dio.c to use dio_min_blocksize instead of 512.fs/btrfs/dio.c+51 -930 replies
2/2Btrfs: change dio.c to use dio_min_blocksize instead of 512.fs/btrfs/dio.c+51 -930 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/2] 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