Error injection

Volker Lendecke Volker.Lendecke at SerNet.DE
Wed Mar 25 21:44:26 GMT 2009


On Wed, Mar 25, 2009 at 12:59:39PM -0700, Richard Sharpe wrote:
> I have added Error Injection to the Samba 3.0.31 base that is used at
> Data Domain because there was a need for it.

Do I get it right that the core would be to put tons of

@@ -77,6 +85,9 @@ static int tdb_chainlock_with_timeout_in
        else
                ret = tdb_chainlock(tdb, key);

+       DD_ERROR_INJECTION("Pretend we got a timeout", 1,
+               (gotalarm = 1));
+
        if (timeout) {
                alarm(0);
                tdb_setalarm_sigptr(tdb, NULL);

all over the code? To me this does not look entirely
unreasonable to do, as long as it compiles to nothing by
default....

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/20090325/cf4793c0/attachment.bin


More information about the samba-technical mailing list