Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755109Ab2JOXgf (ORCPT ); Mon, 15 Oct 2012 19:36:35 -0400 Received: from shiva.jussieu.fr ([134.157.0.129]:51933 "EHLO shiva.jussieu.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754399Ab2JOXgd (ORCPT ); Mon, 15 Oct 2012 19:36:33 -0400 X-Ids: 164 From: Juliusz Chroboczek To: Max Filippov Cc: linux-kernel@vger.kernel.org Subject: Re: Write is not atomic? References: <7i391fto34.fsf@lanthane.pps.jussieu.fr> Date: Tue, 16 Oct 2012 01:36:29 +0200 In-Reply-To: (Max Filippov's message of "Tue, 16 Oct 2012 02:21:36 +0400") Message-ID: <7itxtvpate.fsf@lanthane.pps.jussieu.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Miltered: at jchkmail.jussieu.fr with ID 507C9DFE.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 507C9DFE.000/134.157.168.1/hydrogene.pps.jussieu.fr/hydrogene.pps.jussieu.fr/ Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 611 Lines: 20 > 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, not to the atomicity of the write operation itself. -- Juliusz -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/