Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263388AbTH0Msv (ORCPT ); Wed, 27 Aug 2003 08:48:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263396AbTH0Msv (ORCPT ); Wed, 27 Aug 2003 08:48:51 -0400 Received: from www.erfrakon.de ([193.197.159.57]:48903 "EHLO www.erfrakon.de") by vger.kernel.org with ESMTP id S263388AbTH0Msu (ORCPT ); Wed, 27 Aug 2003 08:48:50 -0400 From: Martin Konold Organization: erfrakon To: Timo Sirainen Subject: Re: Lockless file reading Date: Wed, 27 Aug 2003 14:42:48 +0200 User-Agent: KMail/kroupware-1.0.0 References: <1061987837.1455.107.camel@hurina> In-Reply-To: <1061987837.1455.107.camel@hurina> Cc: linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200308271442.48672.martin.konold@erfrakon.de> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 859 Lines: 28 Am Wednesday 27 August 2003 02:37 pm schrieb Timo Sirainen: Hi, > The question is what can happen if I read() a file that's being > simultaneously updated by a write() in another process? The behaviour is undefined. > 123 over XXX, is it possible that read() returns 1X3 in some conditions? Yes. The actual order stuff is written to the disk is not guaranteed. Regards, -- martin Dipl.-Phys. Martin Konold e r f r a k o n Erlewein, Frank, Konold & Partner - Beratende Ingenieure und Physiker Nobelstrasse 15, 70569 Stuttgart, Germany fon: 0711 67400963, fax: 0711 67400959 email: martin.konold@erfrakon.de - 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/