On 03/10/2023 20:25, Bart Van Assche wrote:
Additionally, shouldn't it be documented what value will be stored in
errno if the atomic write has been rejected?
So I was treating all atomic writes errors which don't follow the "rules" as low-level I/O errors, which is -EIO. However, yes, I can document this. Further to that, based on description of an error for O_DIRECT, which is to return -EINVAL for misaligned, I think that -EINVAL may be better for any atomic write rule violations. OK?