Solving: samba registry with client programs
Stef Walter
stefw at gnome.org
Thu Apr 19 02:48:34 MDT 2012
On 04/18/2012 09:34 PM, Volker Lendecke wrote:
>> >
>> > Sounds like a good start, but I wonder if we shouldn't rather use tevent
>> > and schedule a write out later on (like no more often than every 5
>> > seconds or so.
>> > This way we can gather a set of changes and only output a new file when
>> > they get all in.
> Well, this does not work too well for "net conf".
Well, we could do: every 5 seconds *or* when the registry is closed.
Although this wouldn't work if the process doesn't exit cleanly. Which
would lead to the mirror being out of sync.
> And, I
> don't think that registry smb.conf modifications are
> so frequent that this really hurts. The fsyncs on the
> registry.tdb are probably much, much more expensive.
Right, especially since this only mirrors the [global] section.
Cheers,
Stef
More information about the samba-technical
mailing list