Re: [RFC PATCH v4 09/10] ksmbd: add provenance time (ptime) and map it to CreationTime
From: Amir Goldstein
Date: Thu Nov 19 2026 - 12:34:44 EST
On Sun, Nov 15, 2026 at 7:04 PM koraynilay <koray.fra@xxxxxxxxx> wrote:
>
> Implement provenance time (ptime) in ksmbd, as introduced in a
> previous commit ("vfs: add provenance time (ptime)").
>
> Map it to SMB's CreationTime, making it settable by SMB clients. When
> reporting CreationTime to clients, prioritize ptime over da.create_time
> memorized in the user.DOSATTRIB xattr.
That doesn't sound like the right thing to do.
If the server stored a CreationTime that client had set, you cannot
override this.
When the client sets CreationTime, the server can decide if it can and wants
(may be a policy decision) to store CreationTime in PTIME and not store
it in user.DOSATTRIB.
Fun fact: the user.DOSATTRIB format also has a mask so storing the
creation time inside it is also optional.
Thanks,
Amir.