On 10/8/24 5:16 PM, Jeremy Allison wrote:
It was done as part of the SMB1 extensions - trying to "pass-through" all possible POSIX open flags. Just remove it.
ok.But then we still need a way to pass O_APPEND over the wire with SMB3 POSIX and we're currently lacking a sane way it seems.
What about using one bit of the 17 reserved bits in <https://www.samba.org/~slow/SMB3_POSIX/fscc_posix_extensions.html#posix-mode>There are more possibly interesting open flags though and I wonder whether packing all of this into those 32 bits is a good idea, but the alternative of changing the SMB2_CREATE_CONTEXT request to add a new field "OpenFlags" is not really a great looking option either.
Attachment:
OpenPGP_signature.asc
Description: OpenPGP digital signature