This was broken by the change for bug #13642. The conversion code that unlinks an empty resource fork AppleDouble sidecar file (eg "._file") gets called as part of create_file(..., "file:AFP_AfpResource", ...). After SMB_VFS_OPEN() has been called with O_CREAT to create the stream, we call SMB_VFS_FSTAT() on the just created handle. This ends up in ad_convert(), finds the resource fork empty and then deletes the stream. Have fix, need bugnumber.
Note that this only affects installations that set fruit:delete_empty_adfiles = yes which is disabled by default.
Created attachment 15195 [details] Patch for 4.9 and 4.10 cherry-picked from master
Comment on attachment 15195 [details] Patch for 4.9 and 4.10 cherry-picked from master LGTM.
Re-assigning to Karolin for inclusion in 4.10.next, 4.9.next.
(In reply to Jeremy Allison from comment #4) Pushed to autobuild-v4-{10,9}-test.
Created attachment 15221 [details] Patch for 4.9 and 4.10 cherry-picked from master Previous backport missed one patch from the patchset, sorry!
Comment on attachment 15221 [details] Patch for 4.9 and 4.10 cherry-picked from master LGTM
Karolin, please add to 4.9 and 4.10. Thanks!
Comment on attachment 15221 [details] Patch for 4.9 and 4.10 cherry-picked from master Sorry I missed it in the review. LGTM. +1.
(In reply to Jeremy Allison from comment #9) Pushed to autobuild-v4-{10,9}-test.
(In reply to Karolin Seeger from comment #10) Pushed to both branches. Closing out bug report. Thanks!