create time format in EAs
jra at samba.org
Wed Jan 6 18:20:53 MST 2010
On Thu, Jan 07, 2010 at 02:12:30AM +0100, Björn JACKE wrote:
> Hi Jeremy,
> looking at a770caed0ff66d it seems like you save the create time in NTTIME,
> right? Would it maybe be a good idea to save a timespec instead? One day we
> might want to store create timestamps from posix clients in ns resolution which
> won't be easily possible then. If we store a timespec with 64bit integers
> instead we will be on the safe site and it doesn't hurt to to now. What do you
This was based on the NDR-linearization code that Metze provided
which stores in NTTIME.
The current "create time" semantics Samba provides are Windows
(ie. clients can change it). What should a POSIX "create time"
semantic be ? Currently there is no agreement on this (should
it be immutable after the file is created - this seems to be
the current idea). We need to define what sematics create time
means in POSIX before we think about storing non-Windows create
Right now the only way to get at the create time via UNIX extensions
returns NTTIME semantics, so even though the underlying birth
time stored on a filesystem might be in ns, there's no way to
So no, I'm not convinced we need to change this.
More information about the samba-technical