From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve French Subject: Re: ext4 - getting at birth time (file create time) and getting/setting nanosecond time stamps and utime Date: Wed, 21 Oct 2009 10:36:00 -0500 Message-ID: <524f69650910210836t797fbf75q8285d9cd155be538@mail.gmail.com> References: <524f69650910191017j7883ed7bvdb0329d1a73f34e4@mail.gmail.com> <5715838A-4568-4273-B1C1-983B348580B6@sun.com> <524f69650910191524k5c9d766fu430c4f7b17d86952@mail.gmail.com> <890110E9-FA69-4356-9BEB-925F98487C52@sun.com> <4ADDB09D.5000707@hp.com> <6E5D19DA-64C5-4A44-9DF4-BEF2AA8DD8AB@sun.com> <524f69650910201349w20a3145cm6b88cd4029912b6b@mail.gmail.com> <4ADE24C2.20009@oracle.com> <524f69650910201411j3dc4897bic8a042cb17fcede8@mail.gmail.com> <1256126392.493.640.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Sunil Mushran , jim owens , linux-fsdevel , Andreas Dilger , samba-technical To: Henrik Nordstrom Return-path: Received: from mail-pz0-f188.google.com ([209.85.222.188]:39299 "EHLO mail-pz0-f188.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754033AbZJUPf4 convert rfc822-to-8bit (ORCPT ); Wed, 21 Oct 2009 11:35:56 -0400 Received: by pzk26 with SMTP id 26so4886305pzk.4 for ; Wed, 21 Oct 2009 08:36:00 -0700 (PDT) In-Reply-To: <1256126392.493.640.camel@localhost.localdomain> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Wed, Oct 21, 2009 at 6:59 AM, Henrik Nordstrom wrote: > utimen -> nanosecond =A0(struct timespec) (1/1000000000), same granul= arity > as current stat(), clock_gettime() and friends. Yes. I have opened bug 6836 in samba bugzilla to track having smbd use utimensat (but not sure whether they will be able to detect when the file system can support nanosecond timestamps through - even with use of utimensat - so there may be questions about how to do runtime detection of whether the filesystem is one like ext4, xfs, jfs etc. that can store such timestamps, if not they probably still have to store 100 nanosecond "DCE time" granulariy timestamps in xattrs) The getting (and optionally setting) create time (via xattr) is still an open question, but am hopeful that that won't be hard to add for ext4. --=20 Thanks, Steve -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel= " in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html