The Apple client creates symlinks with a compounded SMB2 create/write/close. When Samba is set to use async io read/write size less than the symlink size, we return an intermediate response to the client, which cannot cope with this and fails. Patch from Christof Schmitt <cs@samba.org> to follow.
Created attachment 13623 [details] git-am fix for 4.7.next Cherry-picked from master.
Created attachment 13624 [details] git-am fix for 4.6.next Back-ported from master cherry-pick.
(In reply to Jeremy Allison from comment #0) To clarify: Samba returned NT_STATUS_IO_ERROR in this case, which is correct according to the spec, but leads to an application error on the client.
(In reply to Christof Schmitt from comment #3) Sorry, meant to write INTERNAL_ERROR.
Re-assigning to Karolin for inclusion in 4.7.next, 4.6.next.
*** Bug 11596 has been marked as a duplicate of this bug. ***
(In reply to Jeremy Allison from comment #5) Pushed to autobuild-v4-7-test. Patch for v4-6-test does not apply on current branch (source3/selftest/tests.py:458 error: source3/selftest/tests.py: Patch konnte nicht angewendet werden Anwendung des Patches fehlgeschlagen bei 0004 selftest: Also run smbtorture smb2.compound with aio enabled)
Created attachment 13749 [details] Updated fix for 4.6.next. Just needed to move a couple of lines in the selftest part of the patch.
(In reply to Jeremy Allison from comment #8) Thanks! Pushed to autobuild-v4-6-test.
(In reply to Karolin Seeger from comment #9) Patches seem to break autobuild-v4-6-test: Waf: Leaving directory `/memdisk/kseeger/a46/b2181556/samba/bin' 'build' finished successfully (6.675s) skipping subunit (testscenarios not available) File "/memdisk/kseeger/a46/b2181556/samba/source3/selftest/tests.py", line 468 plansmbtorture4testsuite(t, "nt4_dc", '//$SERVER_IP/aio -U$USERNAME%$PASSWORD', ' ^ SyntaxError: EOL while scanning string literal Error creating recipe from /usr/bin/python /memdisk/kseeger/a46/b2181556/samba/source3/selftest/tests.py| at /memdisk/kseeger/a46/b2181556/samba/selftest/selftest.pl line 647. make: *** [test] Error 1
That's strange (the 4.6.x test breakage). Ralph, any chance you can take a look (I'm off sick today).
Created attachment 13774 [details] Patch for 4.6 backported from master
Comment on attachment 13774 [details] Patch for 4.6 backported from master Works great Ralph, thanks. Don't know where I screwed up the previous backport.
Re-assigning to Karolin for inclusion in 4.7.next.
(In reply to Ralph Böhme from comment #12) Thanks! :-) Pushed to autobuild-v4-6-test.
(In reply to Karolin Seeger from comment #15) Pushed to v4-6-test. Closing out bug report. Thanks!