linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steve French <smfrench@gmail.com>
To: linux-fsdevel <linux-fsdevel@vger.kernel.org>
Cc: 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: Mon, 19 Oct 2009 12:17:23 -0500	[thread overview]
Message-ID: <524f69650910191017j7883ed7bvdb0329d1a73f34e4@mail.gmail.com> (raw)

A new version of the format for Samba server related file system
extended attributes is expected in the next version of Samba so the
topic of create time and nanosecond timestamps for Linux has come up
again.  Since some file systems don't support storing create time
(birth time), and none support updating create time, or for that
matter for storing any nanosecond timestamps at all (a millisecond
seems like a much longer time today than when the stat structure was
defined), and dos attributes, Samba server stores these in extended
attributes, which is awkward on those file systems which store
(different) versions of these on disk.

In the absence of any syscalls for utimes (nanosecond granularity) and
no syscall for returning (or setting) create time (birth time), and
ext4 likely to become popular (ext4 stores nanosecond timestamps, and
create time), Samba developers (and probably other apps such as backup
applications) need a way to modify the inode's nanosecond timestamps
and get at file create time, perhaps via ioctl and/or xattr.

I think the chance of adding new syscalls for these and libc getting
modified for this is near zero, so any opinions about the best way for
Samba server to get at this information?

Mingming Cao wrote:
> 1)  Ext4 adds support for date-created timestamps. But, current stat()interface
> doesn't support the file creation time/delete time. As far as I know, it is hard
> to modify or add the necessary systemcall to export this info out to
> user programs for now. These changes would require coordination of many projects.
>2) from the linux man page utimes seems only allow to set microsecond timestamp


-- 
Thanks,

Steve

             reply	other threads:[~2009-10-19 17:17 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-19 17:17 Steve French [this message]
2009-10-19 18:55 ` ext4 - getting at birth time (file create time) and getting/setting nanosecond time stamps and utime 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
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=524f69650910191017j7883ed7bvdb0329d1a73f34e4@mail.gmail.com \
    --to=smfrench@gmail.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=samba-technical@lists.samba.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).