macOS SMB server uses xattrs as storage backend for streams, directly exposing xattr get/set characteristics. Setting EOF on a stream to 0 just deletes the xattr as there's no 0-byte size xattr. To be compatible with a macOS SMB server, we should behave the same for macOS client. Have patch, need bugnumber...
Created attachment 14311 [details] Patch for 4.7 and 4.8 cherry-picked from master
Reassigning to Karolin for inclusion in 4.8.next, 4.7.next.
(In reply to Jeremy Allison from comment #2) Pushed to autobuild-v4-[8,7]-test.
(In reply to Karolin Seeger from comment #3) Pushed to both branches. Closing out bug report. Thanks!
Created attachment 14470 [details] Follow-up patch for 4.9, cherry-picked from master
Created attachment 14471 [details] Follow-up patch for 4.7 and 4.8, cherry-picked from master 4.9 patch doesn't apply with git am, thus providing different patchset for 4.8 and 4.7.
(In reply to Ralph Böhme from comment #6) Pushed to autobuild-v4-{9,8,7}-test.
Pushed to all branches. Closing out bug report. Thanks!
*** Bug 13636 has been marked as a duplicate of this bug. ***