all Volumes from other drives. "update slots all-drives"?
For 1.37:
+- Make a callback when Rerun failed levels is called.
+- Give Python program access to Scheduled jobs.
- Implement some way to turn off automatic pruning in Jobs.
- Implement a way an Admin Job can prune, possibly multiple
clients -- Python script?
- Solicit Events
- Add disk seeking on restore; turn off seek on tapes.
stored/match_bsr.c
-
return 1;
}
+#else
+
+/* Dummy if Python not configured */
+int generate_job_event(JCR *jcr, const char *event)
+{ return 1; }
+
+
#endif /* HAVE_PYTHON */
bool set_prog(BFILE *bfd, char *prog, JCR *jcr)
{
+#ifdef HAVE_PYTHON
if (bfd->prog && strcmp(prog, bfd->prog) == 0) {
return true; /* already setup */
}
+
int stat = generate_job_event(jcr, "Reader");
if (stat == 1 && bfd->pio.fo && bfd->pio.fr && bfd->pio.fc) {
bfd->prog = prog;
bfd->jcr = jcr;
return true;
}
+#endif
bfd->prog = NULL;
return false;
return 1;
}
+#else
+
+/* Dummy if Python not configured */
+int generate_job_event(JCR *jcr, const char *event)
+{ return 1; }
+
+
#endif /* HAVE_PYTHON */