tdb overkill ?

Jean Francois Micouleau Jean-Francois.Micouleau at
Tue Dec 4 11:24:01 GMT 2001

On Tue, 4 Dec 2001, Jeremy Allison wrote:

> Do we really need to use a tdb for this ?

no we don't.

> This is a separate tdb storing only 9 distinct
> integer or time values, which a UNIX administrator would
> probably like to modify by hand.

that's true. I wondered myself (maybe 3 seconds) before going to a
separate tdb.

> Why don't we make it a text file that looks like :

> That the administrator can edit. We also allow
> it to be changed via tools of course.
> This is such a simple file we can easily use our
> test file parsing functions to read/write atomicly.

because text files are harder to maintain for non-unix sysadmins coming to
this wonderful world of samba ? ;-) (without offence to anybody)

Oh, I plan to store more informations in this file in the longer run, like
the last used rid or secdesc on internal objects. So storing blobs you
can't edit by hand. Maybe the file name is misleading, I should have named
it general_informations.tdb.

btw, I really miss the spoolss when the backend was still a text file ;-)


More information about the samba-technical mailing list