Re: Write is not atomic?

2012-10-16 Thread Juliusz Chroboczek
> 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?

Re: Write is not atomic?

2012-10-16 Thread Juliusz Chroboczek
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

Re: Write is not atomic?

2012-10-15 Thread Juliusz Chroboczek
> You don't check return code here, does write succeed at all? Yes, both writes return 6. > Does it ever produce e.g. OuOuilleille No. > (as this is what atomicity is about here)? I was referring to the claim that under Linux writing and adjusting the file offset are performed as an atomic

Write is not atomic?

2012-10-15 Thread Juliusz Chroboczek
stem or the kernel on the Pentium server. -- Juliusz Chroboczek P.S. I'll appreciate being copied with any replies. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.

Write is not atomic?

2012-10-15 Thread Juliusz Chroboczek
. -- Juliusz Chroboczek P.S. I'll appreciate being copied with any replies. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http

Re: Write is not atomic?

2012-10-15 Thread Juliusz Chroboczek
You don't check return code here, does write succeed at all? Yes, both writes return 6. Does it ever produce e.g. OuOuilleille No. (as this is what atomicity is about here)? I was referring to the claim that under Linux writing and adjusting the file offset are performed as an atomic step,

Re: [REPORT] cfs-v4 vs sd-0.44

2007-04-22 Thread Juliusz Chroboczek
> Oh I definitely was not advocating against renicing X, Why not do it in the X server itself? This will avoid controversial policy in the kernel, and have the added advantage of working with X servers that don't directly access hardware. Con, if you tell me ``if you're running under Linux and

Re: [REPORT] cfs-v4 vs sd-0.44

2007-04-22 Thread Juliusz Chroboczek
Oh I definitely was not advocating against renicing X, Why not do it in the X server itself? This will avoid controversial policy in the kernel, and have the added advantage of working with X servers that don't directly access hardware. Con, if you tell me ``if you're running under Linux and