From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from verein.lst.de ([213.95.11.211]:43576 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750705AbdAWQdT (ORCPT ); Mon, 23 Jan 2017 11:33:19 -0500 Date: Mon, 23 Jan 2017 17:26:07 +0100 From: hch To: Trond Myklebust Cc: hch , "jlayton@poochiereds.net" , "bfields@redhat.com" , "linux-nfs@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" Subject: Re: [PATCH] nfsd: special case truncates some more Message-ID: <20170123162607.GA21199@lst.de> References: <1485104060-15209-1-git-send-email-hch@lst.de> <1485104060-15209-2-git-send-email-hch@lst.de> <1485174116.2786.7.camel@poochiereds.net> <20170123123348.GA28102@lst.de> <20170123153615.GA32201@lst.de> <1485186729.2786.11.camel@poochiereds.net> <20170123160559.GA786@lst.de> <1485188442.41392.1.camel@primarydata.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1485188442.41392.1.camel@primarydata.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Mon, Jan 23, 2017 at 04:20:45PM +0000, Trond Myklebust wrote: > Note that the POSIX spec seems to have changed recently. The current > spec appears to state that we should set the mtime and ctime (and > change attribute) on success in open(O_TRUNC), truncate() and > ftruncate(). In previous incarnations of the spec, truncate() would > only set the time if the size was changed: Interesting. But in this case historical Posix and thus Linux behavior still takes precedence and we're not suddently going to change behavior.