Additional tdb flag

Volker Lendecke Volker.Lendecke at SerNet.DE
Fri May 12 16:17:33 GMT 2006


On Tue, May 09, 2006 at 03:35:09PM +0300, Meital Hershcovitch wrote:
> To handle this we added another flag to the tdbbackup "-c". This flag
> will only check if the tdb file was corrupted and return non zero value
> if it was corrupted.

Hmmm. I don't think running tdb_traverse is the best way to
figure if a tdb is corrupted or not. I've for example seen
tdb's with cycles in the freelist, ending up in 100% CPU for
everyone trying to add something to it. This is not covered.

I'd hesitate to add this to the main tree, as I think it's
really unreliable, and I don't want to give the illusion we
really check something.

However, having a decent consistency checker for tdb's would
be great, but this will probably involve a lot more work.

Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20060512/79a63c7e/attachment.bin


More information about the samba-technical mailing list