The Samba-Bugzilla – Bug 12787
Latest macOS uses copy-chunk on named streams which results in metadata corruption
Last modified: 2017-05-12 06:17:34 UTC
Copy-chunk on streams is currently not supported. We actually end up doing a copy in the data stream (!) and the copy-chunk on the stream returns success.
Subsequently the client calls setinfo(size) on the stream which acutally creates the stream with the correct size but filled with 0 bytes.
Voila, unnoticed data corruption. Though the user might notice that the macOS metadata is somehow broken, eg Finder tags are lost.