GPFS supports denying the DELETE sharemode. Using this results in the problem that close_remove_share_mode() first tries to unlink() the file and only after that requests to remove the sharemode. The unlink() fails in this case when the file system denies the DELETE sharemode and the file still exists after the "delete on close".
Created attachment 13916 [details] Patch for Samba 4.8 Backport to Samba 4.8. As vfs_gpfs only implements the DELETE sharemode in 4.8 and newer and no other vfs module implements the DELETE sharemode, a backport to 4.8 should be sufficient.
Reassigning to Karolin for inclusion in 4.8.0.
Pushed to autobuild-v4-8-test.
(In reply to Karolin Seeger from comment #3) Pushed to v4-8-test. Closing out bug report. Thanks!