Re: [RFC PATCH samba] smbd: break directory leases before sending notify events
ChenXiaoSong <[email protected]>
| Newsgroups | org.kernel.vger.linux-cifs |
|---|---|
| Message-ID | <[email protected]> |
I look forward to your better solution. Please CC me when you send it, and if you want, you can also add: Reported-by: ChenXiaoSong <[email protected]> On 8/17/26 16:00, Ralph Boehme wrote: > Hi! > > Thanks for looking into this and trying to address the issue! > > Unfortunately, iirc it won't be as simple due to the way Samba > internally integrates inotify with changes coming in over SMB. I have > this sitting on my todo list for the next months, the plan is add a new > change-notify backend based on fanotify, where, in contrast to inotify, > change notifications contain the pid of the triggering process. We need > that information as a differentiator in notifyd to correctly drive the > machinery. > > As an example, iirc with just your patch, we would break the dirlease > for changes done by the client owning it and the change correctly > referencing it via the parent dirlease key in the handle triggering the > change. -- ChenXiaoSong <[email protected]> Chinese Homepage: https://chenxiaosong.com English Homepage: https://chenxiaosong.com/en