On 2006-06-30 12:46, Stefan Eissing wrote:
Hi,
i was unsuccessful finding an answer, so I turned here. Apologies if
this has been asked for a zillion times already:
In amanda 2.4.5 amcheck returned an error and sent a mail when the tape
did have a wrong labvel. Under 2.4.5 it still detects the label
mismatch, but this is not recognized as an error and, by default, no
mail is generated.
My question:
- is this an intended change of behavior or a bug?
- is there a configuration workaround or a patch?
- if none of the above: shall i try to write one?
Yes it is a bug, and it was fixed in the code a few weeks ago already.
Wait until the next release, or use a recent "snapshot" release.
Or apply this little change to the source code yourself:
--- amcheck.c_ORIG 2006-07-03 09:41:55.000000000 +0200
+++ amcheck.c 2006-07-03 09:42:04.000000000 +0200
@@ -838,6 +838,7 @@
fprintf(outf, " (expecting ");
if(exptape != NULL) fprintf(outf, "tape %s or ",
exptape->label);
fprintf(outf, "a new tape)\n");
+ tapebad = 1;
} else {
if (overwrite) {
char *wrlabel_status;
--
Paul Bijnens, xplanation Technology Services 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, *
* init 0, kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ... "Are you sure?" ... YES ... Phew ... I'm out *
***********************************************************************
|