From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id nBMCfgdu131730 for ; Tue, 22 Dec 2009 06:41:43 -0600 Received: from QMTA14.emeryville.ca.mail.comcast.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 77A4211E16D for ; Tue, 22 Dec 2009 04:42:24 -0800 (PST) Received: from QMTA14.emeryville.ca.mail.comcast.net (qmta14.emeryville.ca.mail.comcast.net [76.96.27.212]) by cuda.sgi.com with ESMTP id JsmvY6WinRMfnyZv for ; Tue, 22 Dec 2009 04:42:24 -0800 (PST) Message-ID: <4B30BEC9.5030706@byu.net> Date: Tue, 22 Dec 2009 05:42:49 -0700 From: Eric Blake MIME-Version: 1.0 Subject: Re: utimensat fails to update ctime References: <4B2B156D.9040604@byu.net> <87aaxclr4q.fsf@devron.myhome.or.jp> <4B2F7421.10005@byu.net> <4B2F7A95.3010708@byu.net> <87hbrkjrk8.fsf@devron.myhome.or.jp> <4B304D04.6040501@byu.net> <20091222123436.GC9611@discord.disaster> In-Reply-To: <20091222123436.GC9611@discord.disaster> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: Dave Chinner Cc: Christoph Hellwig , Linux Kernel Mailing List , OGAWA Hirofumi , xfs@oss.sgi.com According to Dave Chinner on 12/22/2009 5:34 AM: > Yeah, it looks like the change to utimesat() back in 2.6.26 for > posix conformance made ATTR_CTIME appear outside inode truncation > and XFS wasn't updated for this change in behaviour at the VFS level. > Looks simple to fix, but I'm worried about introducing other > unintended ctime modifications - is there a test suite that checks > posix compliant atime/mtime/ctime behaviour around anywhere? Yes - the gnulib unit test, consisting of: http://git.savannah.gnu.org/cgit/gnulib.git/tree/tests/nap.h http://git.savannah.gnu.org/cgit/gnulib.git/tree/tests/test-utimens-common.h http://git.savannah.gnu.org/cgit/gnulib.git/tree/tests/test-utimens.h http://git.savannah.gnu.org/cgit/gnulib.git/tree/tests/test-lutimens.h http://git.savannah.gnu.org/cgit/gnulib.git/tree/tests/test-futimens.h http://git.savannah.gnu.org/cgit/gnulib.git/tree/tests/test-futimens.c http://git.savannah.gnu.org/cgit/gnulib.git/tree/tests/test-utimensat.c Taken together, these files produce the executables test-futimens and test-utimensat which can demonstrate compliance with POSIX. They are also bundled as part of GNU coreutils (the version bundled with coreutils 8.2 didn't test for ctime compliance, and coreutils 8.3 hasn't been released yet) if you use 'make -C gnulib-tests check'. -- Don't work too hard, make some time for fun as well! Eric Blake ebb9@byu.net _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs