Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754075AbcKRTIu (ORCPT ); Fri, 18 Nov 2016 14:08:50 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48110 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752534AbcKRTIp (ORCPT ); Fri, 18 Nov 2016 14:08:45 -0500 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <1479495261.2733.1.camel@redhat.com> References: <1479495261.2733.1.camel@redhat.com> <1479489454.7629.1.camel@poochiereds.net> <20161117234047.GE28177@dastard> <147938969703.13574.10295364502230379833.stgit@warthog.procyon.org.uk> <147938970382.13574.11581172952175034619.stgit@warthog.procyon.org.uk> <26168.1479461768@warthog.procyon.org.uk> <7019.1479492256@warthog.procyon.org.uk> To: Jeff Layton Cc: dhowells@redhat.com, Dave Chinner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/4] statx: Add a system call to make enhanced file info available MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7684.1479496123.1@warthog.procyon.org.uk> Date: Fri, 18 Nov 2016 19:08:43 +0000 Message-ID: <7685.1479496123@warthog.procyon.org.uk> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Fri, 18 Nov 2016 19:08:45 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 661 Lines: 19 Jeff Layton wrote: > Does AFS allow you to infer something from the actual value? Yes. Given: (1) Each write on a file is atomic with respect to all other writes to that same file. (2) The data version is incremented by exactly one for each write committed, and that value is returned in the reply to the write RPC call. If you think you have a file with version 99, you do a call and get back version 100, you *know* that there was no conflicting write before your write. If the version came back as 101, however, you *know* that there was a write you didn't know about. Therefore, you have to flush your cache. David