Skip to content

O_DIRECT implementation misses statx(STATX_DIOALIGN) extension #16970

Closed
@amotin

Description

@amotin

To properly use O_DIRECT, applications need to know file system requirements for I/O and buffer alignments. As was mentioned in #16953 (comment), STATX_DIOALIGN extension to statx() (https://man7.org/linux/man-pages/man2/statx.2.html) seems to be the way to do it on Linux since kernel 6.1. Unfortunately it seems zpl_getattr_impl() code around here

#ifdef STATX_BTIME
does not implement it, while it seems to be an easy change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: FeatureFeature request or new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions