[PATCHES] smbcontrol disconnect-client

Jeremy Allison jra at samba.org
Tue Dec 10 18:24:57 MST 2013

On Sat, Dec 07, 2013 at 01:05:58PM +0100, Stefan (metze) Metzmacher wrote:
> Am 07.12.2013 00:15, schrieb Christof Schmitt:
> > Here are a few patches that Christian had developed some time ago. They
> > implement a 'smbcontrol disconnect-client <ip address>'  call that
> > disconnects all clients from a certain IP address. That is useful when a
> > config file for a specific client has been changed and that change has
> > to be enforced.
> > 
> > Comments?
> I think this is too dangerous, if the client still has files with
> batch/exclusive oplocks
> open and changes in the local buffer, we may trigger data corruption. At
> least without
> durable opens.
> I think the command (maybe a 2nd one) should first trigger a break to
> level2 to all opens
> and don't grant more for the rest of the connection lifetime. And the
> disconnect
> should only work if the connection is in good shape.

That's a good enhancement (make the command trigger a
break first). However this is a "be careful what you
wish for" command - people have been asking for a
way to forcibly disconnect a specific client for
quite a long time.

Maybe it should be renamed "smbcontrol force-disconnect-client"
or "smbcontrol disconnect-client-with-extreme-prejudice"
command ?



More information about the samba-technical mailing list