Commit f39d1aca authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Add buffered IO fallback for userspace



In userspace, we want to be able to switch to buffered IO when we're
dealing with an image on a filesystem/device that doesn't support the
blocksize the filesystem was formatted with.

This plumbs through !opts.direct_io -> FMODE_BUFFERED, which will be
supported by the shim version of blkdev_get_by_path() in -tools, and it
adds a fallback to disable direct IO and retry for userspace.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent a09818c7
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment