kernel change notify and dos attribute changes

Volker Lendecke vl at
Tue Nov 8 07:09:29 UTC 2016

On Mon, Nov 07, 2016 at 11:26:23PM -0600, Steve French wrote:
> I ran smbtorture smb2.notify.mask-change against normal Samba 4.5
> (4.5-test, current git tree) on normal, boring ext4/Fedora and noticed
> that it fails (ie hangs, eventually times out) unless kernel change
> notify is disabled in smb.conf.
> Is this expected?  Seems like a bug that we don't notice (SMB2
> SetFileBasicInfo) the dos attribute change in smbd, in this case
> changing the "hidden" bit.   The change notify is asking only for
> change notification on "attributes" and it looks like smbd/dosmode.c
> does call out to notify on attribute changes - but the notify daemon
> doesn't trigger the actual notification reply unless kernel change
> notify is off.
> Ideas?

The notify tests with kernel change notify on are bound to fail anyway,
so I did not take a close enough look so far. Patches welcome :-)


More information about the samba-technical mailing list