Re: Write is not atomic?

From: Juliusz Chroboczek
Date: Tue Oct 16 2012 - 02:22:01 EST

> This seems out of context.

> If the file was open(2)ed with O_APPEND, the file offset is first
> set to the end of the file before writing. The adjustment of the
> file offset and the write operation are performed as an atomic
> step.

> Sounds different, doesn't it?

Yes, it does -- thanks for the clarification. (And thanks to Dave for
the interesting tests.)

Sorry for the confusion,

-- Juliusz
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at