[PATCH 02/18] xstat: Add a pair of system calls to make extended file stats available [ver #6]

Jeremy Allison jra at samba.org
Sun Aug 8 07:05:01 MDT 2010

On Sun, Aug 08, 2010 at 08:53:01AM -0400, Jeff Layton wrote:
> It would be more convenient if this were part of stat() but adding a
> new stat call is non-trivial. Even if we did that, it still doesn't
> solve the problem of being able to set the create time. The fact that
> that's rarely done doesn't really matter much -- we ought to shoot for
> the semantics that are needed to handle this properly.

*BSD didn't. They just added something that was useful to UNIX.
I'd be happy with that. We don't need to ape Windows in everything.
The coming ACL disaster will show that (we will go from an ACL
model that is slightly too complex to use, to one that is impossibly
complex to use :-).

> If that's the case, don't you have to query for this EA every time you
> need to return the create time anyway? If so, then doing this really
> isn't any more costly -- you'd just be querying a different EA, right?

No, we'd be querying an additional EA. The EA we query contains
the DOS attribues as well as the create time.


More information about the samba-technical mailing list