diff options
| author | Gael Blivet <gael.blivet@gmail.com> | 2026-07-07 11:55:06 +0200 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-08-17 15:00:35 +0900 |
| commit | 13e82e2cbd10490d8d6bb29714fb3ec884657913 (patch) | |
| tree | e7a1c480446f63882ea759c2f5f612cbdf478d36 /tools/perf/scripts/python | |
| parent | 92db30225eba52d330eda2dd92311afac47bb7df (diff) | |
ksmbd: clear stale sparse attribute on non-sparse shares
smb2_update_xattrs() copies the DOS SPARSE attribute bit verbatim from
the stored xattr into the in-memory file attributes, without checking
whether the share is currently advertising FILE_SUPPORTS_SPARSE_FILES.
A file whose xattr has a stale SPARSE bit (set by a previous client,
or from before the share was reconfigured) would keep reporting as
sparse even after sparse-file support is turned off for the share.
This matters for Time Machine: sparsebundle band files rely on
accurate sparse-file status being reported, since macOS decides
whether to issue FSCTL_SET_SPARSE based on it. Mask the bit out when
the share doesn't currently advertise sparse-file support.
Assisted-by: Claude:claude-sonnet-5
Signed-off-by: Gael Blivet <gael.blivet@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
