[Linux-cifsd-devel] [PATCH] cifsd: make xattr format of ksmbd compatible with samba's one

Namjae Jeon linkinjeon at kernel.org
Tue Jan 26 22:44:39 UTC 2021

2021-01-26 23:36 GMT+09:00, Stefan Metzmacher via samba-technical
<samba-technical at lists.samba.org>:
> Hi Namjae,
Hi Metze,
>> Samba team request that ksmbd should make xattr format of ksmbd
>> compatible
>> with samba's one. When user replace samba with ksmbd or replace ksmbd
>> with samba, The written attribute and ACLs of xattr in file should be
>> used
>> on both server. This patch work the following ones.
>>  1. make xattr prefix compaible.
>>     - rename creation.time and file.attribute to DOSATTRIB.
>>     - rename stream. to DosStream.
>>     - rename sd. to NTACL.
>>  2. use same dos attribute and ntacl structure compaible with samba.
>>  3. create read/write encoding of ndr functions in ndr.c to store ndr
>>     encoded metadata to xattr.
> Thanks a lot!
> Do you also have this a git commit in some repository?
Yes, You can check github.com/cifsd-team/cifsd
And there is a cifsd-for-next branch in
github.com/smfrench/smb3-kernel for upstream.
I have made a patch for that git tree, but I haven't fully tested it yet...
I'm planning to send a pull request to Steve this week after doing it.
> I played with ksmbd a bit in the last days.
> I can also test this commit and check if the resulting
> data is compatible with samba.
Great!  Let me know your opinion if there is something wrong:)
Thank you so much for your help!
> metze

More information about the samba-technical mailing list