WINSEDIT.C

Stefan (metze) Metzmacher metze at metzemix.de
Thu May 1 08:08:48 GMT 2003


At 17:51 01.05.2003 +1000, Tim Potter wrote:
>On Thu, May 01, 2003 at 09:32:08AM +0200, Stefan (metze) Metzmacher wrote:
>
> > When the winsedit tool will be able to edit entries in the wins.tdb
> > YOU MUST USE IT WHEN NMBD IS  *NOT* RUNNING!!!!
> > otherwise the information will not be used and overwritten!!!
> > Because of the current layout of nmbd.
> > nmbd read's the wins.tdb on start and then holds the a list in memory.
> > then it flushes all entries to a new wins.tdb file periodicly and delete
> > the old file!!!
>
>How about a tdb message that reloads data from the wins.tdb file?
>That would be better than placing restrictions on when the tool can be
>run.

But we may lose some in memory changes...

I think the best way would be to not hold wins entries in a memory.

and when something changes directly make a change to the tdb.



metze
-----------------------------------------------------------------------------
Stefan "metze" Metzmacher <metze at metzemix.de> 



More information about the samba-technical mailing list