auto-loading of smb.conf
Jean-Francois Micouleau
Jean-Francois.Micouleau at utc.fr
Wed Sep 9 14:26:04 GMT 1998
On Wed, 9 Sep 1998, Andrew Tridgell wrote:
> > auto-reloading of smb.conf until all printers are open by a given smbd
> > process.
Oops, my fault. I mean: until all opened printers are closed.
> no, don't do that. What if the client doesn't open all printers? Then
> you'd leave the smb.conf loading permanently disabled.
>
> I think the correct solution is to either add checks to see if the
> share name is valid (it can't be that hard!) or just not ignore the
> checks and bear with a possible segv if the reload happens when the
> share is deleted.
>
> there is also a 3rd alternative. Samba doesn't allow a reload to
> delete a share that is currently in use. (see the call to
> lp_killunused() in server.c). You could add a "inuse" flag to a share
> and make conn_snum_used() check that flag. Then add lp_set_used() and
> lp_unset_used() calls.
I like that.
Before coding, let's state on the auto-reloading. Do we want to keep it or
move to the kill -HUP unix habit ?
-----------------------------------------------------------
Pinky: "What are we going to do tonight, Brain?"
Brain: "The same thing we do every night, Pinky :
try to install Windows NT !"
-----------------------------------------------------------
More information about the samba-technical
mailing list