Renaming a basefile that has open streams must fail with NT_STATUS_ACCESS_DENIED. This was verified against Windows Server 2016.
Created attachment 14309 [details] Patch for 4.7 backported from master Only the first commit needed some changes to apply in 4.8, the rest just cherry-picked cleanly.
Created attachment 14310 [details] Patch for 4.8 backported from master Only the first commit needed some changes to apply in 4.8, the rest just cherry-picked cleanly.
(In reply to Ralph Böhme from comment #1) s/4.8/4.7/
Comment on attachment 14310 [details] Patch for 4.8 backported from master *Theoretically* this is adding a new internal bit-flag to the VFS. In practice I think this is OK :-).
Reassigning to Karolin for inclusion in 4.7.next, 4.8.next.
(In reply to Jeremy Allison from comment #5) Pushed to autobuild-v4-[8,7]-test.
(In reply to Karolin Seeger from comment #6) Pushed to both branches. Closing out bug report. Thanks!