ksmbd: preserve DOS attributes across truncating opens

An existing file can be opened with a truncating create request that
supplies FileAttributes.  Do not reset its cached DOS attributes while
opening it.  After a successful truncation, apply the requested attributes
and store them in the DOS attribute xattr.

This preserves READONLY when a truncating open requests that attribute.

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
This commit is contained in:
Namjae Jeon 2026-07-12 20:20:37 +09:00
commit 125c471ca9