linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: ext4 - getting at birth time (file create time) and getting/setting nanosecond time stamps and utime
@ 2009-10-19 17:17 Steve French
  2009-10-19 18:55 ` Andreas Dilger
  0 siblings, 1 reply; 31+ messages in thread
From: Steve French @ 2009-10-19 17:17 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: samba-technical

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

^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2009-10-22 21:58 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).