Technical notes on version 2.2.x
General:
+09Jan08
+kes Re-enable the new job code editing (%f).
+08Jan08
+kes Fix bsnprintf for float point numbers. I broke recently when
+ parameterizing some variables.
03Jan08
kes Move Heartbeat documentation from Job to Director resource.
This fixes bug #1033.
- Release Notes for Bacula 2.2.7
+ Release Notes for Bacula 2.2.8
Bacula code: Total files = 520 Total lines = 195,550 (*.h *.c *.in)
82 new files, 41,221 new lines of code, 208,380 lines of change from 2.0.3
not have to upgrade all your File daemons when you upgrade. There is
no database upgrade needed from version 2.0.x to 2.2.0.
+Version 2.2.8 is a bug fix to version 2.2.7:
+- It fixes bugs: 1036, 1033(doc), 1018, and 1028.
+
Version 2.2.7 has several new features and several important bug fixes
since version 2.2.6:
- It fixes bugs: 1009, 1022, 1024, 1019, 1012, 1021, 1020
if (pass == 2) {
RUNSCRIPT *script = new_runscript();
-// script->set_job_code_callback(job_code_callback_filesetname);
+ script->set_job_code_callback(job_code_callback_filesetname);
script->set_command(lc->str);
RUNSCRIPT *script = new_runscript();
memcpy(script, &res_runscript, sizeof(RUNSCRIPT));
-// script->set_job_code_callback(job_code_callback_filesetname);
+ script->set_job_code_callback(job_code_callback_filesetname);
if (*runscripts == NULL) {
*runscripts = New(alist(10, not_owned_by_alist));
}
/* callback function for edit_job_codes */
-char *job_code_callback_filesetname(JCR *jcr, const char* param)
+extern "C" char *job_code_callback_filesetname(JCR *jcr, const char* param)
{
if (param[0] == 'f') {
return jcr->fileset->name();
/* dird_conf.c */
extern const char *level_to_str(int level);
-extern char *job_code_callback_filesetname(JCR *jcr, const char*);
+extern "C" char *job_code_callback_filesetname(JCR *jcr, const char*);
/* expand.c */
int variable_expansion(JCR *jcr, char *inp, POOLMEM **exp);
/* util.c */
+extern "C"{
typedef char *(*job_code_callback_t)(JCR *, const char *);
+}
bool is_buf_zero (char *buf, int len);
void lcase (char *str);
const char * job_status_to_str (int stat);
const char * job_level_to_str (int level);
void make_session_key (char *key, char *seed, int mode);
-//POOLMEM * edit_job_codes (JCR *jcr, char *omsg, char *imsg, const char *to, job_code_callback_t job_code_callback = NULL);
-POOLMEM * edit_job_codes (JCR *jcr, char *omsg, char *imsg, const char *to);
+POOLMEM * edit_job_codes (JCR *jcr, char *omsg, char *imsg, const char *to, job_code_callback_t job_code_callback = NULL);
void set_working_directory (char *wd);
const char * last_path_separator (const char *str);
BPIPE *bpipe;
char line[MAXSTRING];
-// ecmd = edit_job_codes(jcr, ecmd, this->command, "", this->job_code_callback);
+ ecmd = edit_job_codes(jcr, ecmd, this->command, "", this->job_code_callback);
ecmd = edit_job_codes(jcr, ecmd, this->command, "");
Dmsg1(100, "runscript: running '%s'...\n", ecmd);
Jmsg(jcr, M_INFO, 0, _("%s: run command \"%s\"\n"), name, ecmd);
* to = recepients list
*
*/
-//POOLMEM *edit_job_codes(JCR *jcr, char *omsg, char *imsg, const char *to, job_code_callback_t callback)
-POOLMEM *edit_job_codes(JCR *jcr, char *omsg, char *imsg, const char *to)
+POOLMEM *edit_job_codes(JCR *jcr, char *omsg, char *imsg, const char *to, job_code_callback_t callback)
{
char *p, *q;
const char *str;
break;
default:
str = NULL;
-// if (callback != NULL) {
-// str = callback(jcr, p);
-// }
+ if (callback != NULL) {
+ str = callback(jcr, p);
+ }
if (!str) {
add[0] = '%';
#undef VERSION
#define VERSION "2.2.8"
-#define BDATE "04 January 2008"
-#define LSMDATE "04Jan08"
+#define BDATE "08 January 2008"
+#define LSMDATE "08Jan08"
#define PROG_COPYRIGHT "Copyright (C) %d-2008 Free Software Foundation Europe e.V.\n"
#define BYEAR "2008" /* year for copyright messages in progs */
Technical notes on version 2.2
General:
+09Jan08
+kes Re-enable the new job code editing (%f).
08Jan08
kes Fix bsnprintf for float point numbers. I broke recently when
- parameterizing some variables.
+ parameterizing some variables. This fixes bug #1036.
03Jan08
kes Move Heartbeat documentation from Job to Director resource.
This fixes bug #1033.