[SMB3 POSIX] POSIX client creates a file, set the ARCHIVE bit or not

Ralph Boehme slow at samba.org
Tue Oct 31 17:35:32 UTC 2023


On 10/30/23 18:52, Jeremy Allison wrote:
> On Mon, Oct 30, 2023 at 06:26:16PM +0100, Ralph Boehme wrote:
>> On 10/30/23 17:28, Jeremy Allison wrote:
>>> I *think* it was back from when most servers were running
>>> without EA's, so archive was mapped to a POSIX perms bit.
>>
>> ah, that makes sense. Thanks!
>>
>> So building on that, maybe a tweak like
>>
>> if (new_dos_attributes & FILE_FLAG_POSIX_SEMANTICS)
>>    if (lp_store_dos_attributes(SNUM(conn))) {
>>         new_dos_attributes |= FILE_ATTRIBUTE_ARCHIVE;
>>    } else {
>>         new_dos_attributes = 0;
>>    }
>> } else {
>>    ...
>> }
>>
>> or similar logic is due?
> 
> Yep, sounds good to me !

fwiw, here's the (WIP) MR

https://gitlab.com/samba-team/samba/-/merge_requests/3357

Thanks!
-slow
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20231031/784358c5/OpenPGP_signature.sig>


More information about the samba-technical mailing list