[RFC PATCH samba] smbd: break directory leases before sending notify events
ChenXiaoSong
chenxiaosong at chenxiaosong.com
Mon Aug 17 08:11:56 UTC 2026
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 <chenxiaosong at kylinos.cn>
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 <chenxiaosong at chenxiaosong.com>
Chinese Homepage: https://chenxiaosong.com
English Homepage: https://chenxiaosong.com/en
More information about the samba-technical
mailing list