All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sunil Mushran <sunil.mushran@oracle.com>
To: Steve French <smfrench@gmail.com>
Cc: Andreas Dilger <adilger@sun.com>, jim owens <jowens@hp.com>,
	linux-fsdevel <linux-fsdevel@vger.kernel.org>,
	samba-technical <samba-technical@lists.samba.org>
Subject: Re: ext4 - getting at birth time (file create time) and  getting/setting nanosecond time stamps and utime
Date: Tue, 20 Oct 2009 14:23:45 -0700	[thread overview]
Message-ID: <4ADE2A61.5040505@oracle.com> (raw)
In-Reply-To: <524f69650910201411j3dc4897bic8a042cb17fcede8@mail.gmail.com>

Steve French wrote:
> On Tue, Oct 20, 2009 at 3:59 PM, Sunil Mushran <sunil.mushran@oracle.com> wrote:
>> Steve French wrote:
>>> So, are we ready for Mingming or one of the ext4 developers to propose
>>> a patch for this via xattrs (I can do a similar one for cifs).
>>> Sounds like various have said:
>>>
>>> 1) xattrs instead of ioctl
>>> 2) get of create time allowed by default, but set of create time limited
>>>
>>> But for the second part of this - how should we set nanosecond
>>> timestamps for the others (or in Samba's case, rounded to 100
>>> nanoseconds for DCE time) ... a millisecond granularity for utimes is
>>> a very long time these days.
>> What's wrong with stat(2)? AFAIK, it supports nanoseconds.
>
> An earlier post from Mingming IIRC noted that utimes does not support
> setting nanosecond timestamps (e.g. write time).
>
> "The function utime() allows specification of time stamps with a
> resolution of 1 second. ... The function utimes() is similar, but the
> times argument allows a reso lution of 1 microsecond for the
> timestamps. "   1 millisecond is not sufficient, and as a result Samba
> has to store duplicate time stamps (in Samba specific xattrs) which we
> would like to avoid wherever possible

If you are trying to update it, you can use utimensat(2).

  reply	other threads:[~2009-10-20 21:25 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-19 17:17 ext4 - getting at birth time (file create time) and getting/setting nanosecond time stamps and utime Steve French
2009-10-19 18:55 ` Andreas Dilger
2009-10-19 18:58   ` Jeremy Allison
2009-10-19 19:37     ` Steve French
2009-10-19 19:12   ` Zach Brown
2009-10-19 20:49     ` Jamie Lokier
2009-10-19 19:45   ` Steve French
2009-10-19 20:11     ` Andreas Dilger
2009-10-19 22:24       ` Steve French
2009-10-19 23:12         ` Andreas Dilger
2009-10-20  3:31           ` Steve French
2009-10-20 12:44           ` jim owens
2009-10-20 20:33             ` Andreas Dilger
2009-10-20 20:49               ` Steve French
2009-10-20 20:59                 ` Sunil Mushran
2009-10-20 21:11                   ` Steve French
2009-10-20 21:23                     ` Sunil Mushran [this message]
2009-10-20 21:37                       ` Steve French
2009-10-20 21:49                         ` Sunil Mushran
2009-10-20 21:56                           ` Steve French
2009-10-20 22:16                             ` Sunil Mushran
2009-10-21 23:45                               ` Mingming
2009-10-21 11:59                     ` Henrik Nordstrom
2009-10-21 15:36                       ` Steve French
2009-10-21 18:56                         ` Brad Boyer
2009-10-21 23:03                         ` Björn Jacke
2009-10-22 21:50                           ` Steve French
2009-10-21  0:44                 ` Andreas Dilger
2009-10-21 23:42                   ` Mingming
2009-10-20 21:10               ` jim owens
2009-10-20  0:41   ` Mingming

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4ADE2A61.5040505@oracle.com \
    --to=sunil.mushran@oracle.com \
    --cc=adilger@sun.com \
    --cc=jowens@hp.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=samba-technical@lists.samba.org \
    --cc=smfrench@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.