Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756248Ab0GVQZ2 (ORCPT ); Thu, 22 Jul 2010 12:25:28 -0400 Received: from borg.medozas.de ([188.40.89.202]:42890 "EHLO borg.medozas.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751448Ab0GVQZ0 (ORCPT ); Thu, 22 Jul 2010 12:25:26 -0400 Date: Thu, 22 Jul 2010 18:25:25 +0200 (CEST) From: Jan Engelhardt To: Linus Torvalds cc: Volker.Lendecke@sernet.de, David Howells , linux-cifs@vger.kernel.org, linux-nfs@vger.kernel.org, samba-technical@lists.samba.org, linux-kernel@vger.kernel.org, viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org Subject: Re: [PATCH 02/18] xstat: Add a pair of system calls to make extended file stats available [ver #6] In-Reply-To: Message-ID: References: <20100715021709.5544.64506.stgit@warthog.procyon.org.uk> <20100715021712.5544.44845.stgit@warthog.procyon.org.uk> <30448.1279800887@redhat.com> User-Agent: Alpine 2.01 (LSU 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1692 Lines: 45 On Thursday 2010-07-22 17:47, Linus Torvalds wrote: >On Thu, Jul 22, 2010 at 8:36 AM, Volker Lendecke > wrote: >> >> The nice thing about this is also that if this is supposed >> to be fully usable for Windows clients, the birthtime needs >> to be changeable. That's what NTFS semantics gives you, thus >> Windows clients tend to require it. > >Ok. So it's not really a creation date, exactly the same way ctime >isn't at all a creation date. [...] >Tell me why we shouldn't just do this right? Nobody said the c in ctime stands for creation. It stands for change (you probably knew that). $ touch this $ stat this File: `this' Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: fh/15d Inode: 106777647 Links: 1 Access: (0644/-rw-r--r--) Uid: (25121/ jengelh) Gid: ( 100/ users) Access: 2010-07-22 18:18:52.665480058 +0200 Modify: 2010-07-22 18:18:52.665480058 +0200 Change: 2010-07-22 18:18:52.665480058 +0200 # Only change inode, not content $ chmod 600 this $ stat this File: `this' Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: fh/15d Inode: 106777647 Links: 1 Access: (0600/-rw-------) Uid: (25121/ jengelh) Gid: ( 100/ users) Access: 2010-07-22 18:18:52.665480058 +0200 Modify: 2010-07-22 18:18:52.665480058 +0200 Change: 2010-07-22 18:18:58.533436339 +0200 (Solaris exhibits the very same kind of behavior.) -- 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/