[SMB3 POSIX] POSIX client creates a file, set the ARCHIVE bit or not
jra at samba.org
Tue Oct 31 16:41:11 UTC 2023
On Tue, Oct 31, 2023 at 10:29:29AM -0400, Tom Talpey via samba-technical wrote:
>On 10/31/2023 9:28 AM, Ralph Boehme wrote:
>>On 10/31/23 13:48, Tom Talpey wrote:
>>>On 10/30/2023 2:53 PM, Ralph Boehme wrote:
>>>>Otoh, in the case of Samba, storing the DOS attrs in an xattr in
>>>>the filesystem is an extra IO syscall.
>>>Isn't it even higher overhead for the client to be setting this?
>>it's not about client initiated setting of DOS attributes, but
>>implicitly setting them as part of SMB2-CREATE (and similar protocol
>>entry points) processing.
>Oops, I forgot to context switch from client to server. :)
>I still agree that managing the archive attribute is best left to
>the filesystem. Should this be a VFS behavior, perhaps?
No (IMHO). This NTFS-Windows emulation behavior. The VFS calls
don't really do that, in Samba this is in the layer above
where we use the underlying VFS to emulate NTFS-Windows.
More information about the samba-technical