dealing with chain loops in TDB

Jeremy Allison jra at samba.org
Fri Jul 25 22:57:11 GMT 2008


On Fri, Jul 25, 2008 at 12:35:27PM +0200, Volker Lendecke wrote:

> Essentially what you want is fsck on tdbs. Removing a
> particular hash chain might destroy other stuff as well, as
> you don't really know where the broken pointers lead you.
> The most sane option from my point of view is to add a
> recovery mode to tdbbackup that creates a new tdb containing
> all records it can retrieve from the corrupt one. tdbbackup
> should be written in some robust way then.

+1 on that. tdbbackup needs to be intimately acquainted
with tdb internals so it can recover corrupted tdbs.

Don't have the time to do it though - Michael might
be the best person to look to for this though, he did
a great job with the code I started to check the uid
caches for winbindd.

Jeremy.


More information about the samba-technical mailing list