Created attachment 17520 [details] Packet trace From SNIA 2022 in Fremont, macOS SMB Client unit test testUpdateLeaseResourceFork ends up sending a SMB Flush on a named stream and the Samba server returns STATUS_PENDING but never sends the actual Flush reply. Working with Jeremy Allison at SNIA for this bug.
I have tracked this down. vfs_fruit needs to add fsync_send_fn/fsync_recv_fn handling, otherwise it passes a fake fd down to the streams_xattr module which causes the flush never to complete.
Created attachment 17524 [details] git-am fix for master. Fix in gitlab-ci. Adds a test.
Created attachment 17525 [details] git-am fix for master. Passes ci. https://gitlab.com/samba-team/devel/samba/-/pipelines/646002858 MR: https://gitlab.com/samba-team/samba/-/merge_requests/2729
This bug was referenced in samba master: 1b8a8732848169c632af12b7c2b4cd3ee73be244 35c637f2e6c671acf8fb9c2a67774bd5e74dd7d0 a7fba3ff5996330158d3cc6bc24746a59492b690
Created attachment 17545 [details] git-am fix for 4.17.next, 4.16.next Cherry-picked from master. Applies cleanly to 4.17.next, 4.16.next.
Ralph - ping ! Can I get an RB+ on the cherry-picked fix so we can get it into the next release ? Thanks, Jeremy.
Reassigning to Jule for inclusion in 4.16 and 4.17.
Pushed to autobuild-v4-{17,16}-test.
This bug was referenced in samba v4-16-test: 24bc377a0ec8fc23df22b396b6b30e6b60b39fb7 6c7af4055805041726c5735da5b89f2f7f067aef 3e0ce4513b06f17791c02ab0b4f787f63fe69b9f
This bug was referenced in samba v4-17-test: 4c6b7983ed5982c283d9663b447c57e3cc7ea615 54d4b0f607e7169b0044fde254c41b8579dcc903 a1453f16aea30c10a1082f419f7a45424eea8597
Closing out bug report. Thanks!
This bug was referenced in samba v4-17-stable (Release samba-4.17.1): 4c6b7983ed5982c283d9663b447c57e3cc7ea615 54d4b0f607e7169b0044fde254c41b8579dcc903 a1453f16aea30c10a1082f419f7a45424eea8597
This bug was referenced in samba v4-16-stable (Release samba-4.16.8): 24bc377a0ec8fc23df22b396b6b30e6b60b39fb7 6c7af4055805041726c5735da5b89f2f7f067aef 3e0ce4513b06f17791c02ab0b4f787f63fe69b9f