Amanda-Users

Re: changing "strange" SAMBA message to error

2004-06-23 13:34:17
Subject: Re: changing "strange" SAMBA message to error
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: Harlan Harris <harlan AT harris DOT name>
Date: Wed, 23 Jun 2004 17:12:32 +0200
Harlan Harris wrote:

I'm running Amanda on a heterogeneous network. Server is a Linux box. Some of the clients are Windows machines, and we're running Samba. Mostly works OK, except that sometimes the Windows machines have errors that look like the following:

? Call timed out: server did not respond after 20000 milliseconds listing \Program Files\Microsoft Office\*


Currently, this "call timed out" message is being labeled as "strange", but I really need to change that to an error, since data is being lost when this happens. How do I reconfigure (or recompile?) Amanda so that this sort of error is categorized as an error, rather than strange? Thanks,

You should add some regular expressions in
client-src/sendbackup-gnutar.c, around line 120:

    118 #if SAMBA_VERSION >= 2
    119   /* Backup attempt of nonexisting directory */
    120   AM_ERROR_RE("ERRDOS - ERRbadpath (Directory invalid.)"),
    121 #endif

Then recompile.

--
Paul Bijnens, Xplanation                            Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit,  ZZ, :q, :q!,  M-Z, ^X^C,  logoff, logout, close, bye,  /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* kill -9 1,  Alt-F4,  Ctrl-Alt-Del,  AltGr-NumLock,  Stop-A,  ...    *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************



<Prev in Thread] Current Thread [Next in Thread>