Bug 12787 - Latest macOS uses copy-chunk on named streams which results in metadata corruption
Latest macOS uses copy-chunk on named streams which results in metadata corru...
Status: ASSIGNED
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services
unspecified
All All
: P5 normal
: ---
Assigned To: Ralph Böhme
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-05-12 04:01 UTC by Ralph Böhme
Modified: 2017-05-12 06:17 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 Ralph Böhme 2017-05-12 04:01:12 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.