Bug 15874 - MacOS clients do not detect support for server-side copy
Summary: MacOS clients do not detect support for server-side copy
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services (show other bugs)
Version: 4.22.2
Hardware: All Mac OS X
: P5 normal (vote)
Target Milestone: ---
Assignee: Ralph Böhme
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-27 12:15 UTC by Andrew Walker
Modified: 2025-06-27 12:34 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Walker 2025-06-27 12:15:44 UTC
MacOS clients use a compounded CREATE /  FSCTL_SRV_REQUEST_RESUME_KEY / CLOSE to determine whether copy-chunk is supported on the SMB server during mount_smbfs operations. Samba is failing with the compounded request with STATUS_INTERNAL_ERROR because of going async in a compounded request. This causes MacOS client to flag samba as not supporting server-side copy. A fairly trivial change to set the defer time for FSCTL_SRV_REQUEST_RESUME_KEY to zero results in MacOS properly identifying support for copy-chunk and server-side copy to work.


Reference to relevant MacOS client code: 

https://github.com/apple-oss-distributions/SMBClient/blob/926c0c131ffcf91d95f1747af37a228d7611753f/kernel/smbfs/smbfs_smb_2.c#L148

Will make merge request shortly.
Comment 1 Ralph Böhme 2025-06-27 12:23:33 UTC
Can you please share a smbtorture test that excersizes this?