Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756347Ab0GVSPy (ORCPT ); Thu, 22 Jul 2010 14:15:54 -0400 Received: from fn.samba.org ([216.83.154.106]:52222 "EHLO lists.samba.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755563Ab0GVSPv (ORCPT ); Thu, 22 Jul 2010 14:15:51 -0400 Date: Thu, 22 Jul 2010 11:15:49 -0700 From: Jeremy Allison To: Linus Torvalds Cc: Jan Engelhardt , Jeremy Allison , 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] Message-ID: <20100722181549.GD32008@samba1> Reply-To: Jeremy Allison References: <20100715021712.5544.44845.stgit@warthog.procyon.org.uk> <30448.1279800887@redhat.com> <20100722162712.GB10352@jeremy-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1444 Lines: 32 On Thu, Jul 22, 2010 at 10:24:17AM -0700, Linus Torvalds wrote: > > And yes, I am also sure that there are applications that do depend on > ctime semantics. Trond mentioned NFS serving, and that's unfortunate. > I bet there are others. That's inevitable when you have 40 years of > history. So I'm not claiming that re-using ctime is painfree, but for > somebody that cares about samba a lot, I bet it's a _lot_ better than > adding a new time that almost nobody actually supports as things stand > now. Samba mostly ignores ctime, for just the reasons you mention. But re-using ctime as create time will lead to more horrible confusion (IMHO). Easier to add a btime field to stat (or whatever you want to call it), especially as some of the filesystems already support it, the code for it exists inside Samba and is working on other UNIX-style OS'es, and for filesystems that don't support it, just return zero or -1 in that field (which we already ignore). > Of people can just use xattrs and do it all entirely in user space. I > assume that's what samba does now, even outside of birthtime. Yep. We even have to do that on systems with an immutable btime to get Windows semantics. Jeremy. -- 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/