1.37 Items:
+- Look at correcting the time jump in the sceduler for daylight
+ savings time changes.
+- Add a "real" timer to network connections.
- Tell the "restore" user when browsing is no longer possible.
- Write non-optimized bsrs from the JobMedia and Media records,
even after Files are pruned.
{
uint32_t count = 0;
uint32_t total_count = 0;
+ uint32_t LastIndex = 0;
+ bool first = true;
if (bsr) {
/*
* For a given volume, loop over all the JobMedia records.
fprintf(fd, "Count=%u\n", count);
}
total_count += count;
+ /* If the same file is present on two tapes or in two files
+ * on a tape, it is a continuation, and should not be treated
+ * twice in the totals.
+ */
+ if (!first && LastIndex == bsr->VolParams[i].FirstIndex) {
+ total_count--;
+ }
+ first = false;
+ LastIndex = bsr->VolParams[i].LastIndex;
}
write_bsr(ua, bsr->next, fd);
}
#undef M_TERM
#undef M_RESTORED
#undef M_SECURITY
+#undef M_ALERT
/*
* Most of these message levels are more or less obvious.
* M_SECURITY For security viloations. This is equivalent to FATAL.
* (note, this is currently being implemented in 1.33).
*
+ * M_ALERT For Tape Alert messages.
+ *
*/
enum {
M_ERROR_TERM, /* Error termination request (no dump) */
M_TERM, /* Terminating daemon normally */
M_RESTORED, /* ls -l of restored files */
- M_SECURITY /* security violation */
+ M_SECURITY, /* security violation */
+ M_ALERT /* tape alert messages */
};
-#define M_MAX M_SECURITY /* keep this updated ! */
+#define M_MAX M_ALERT /* keep this updated ! */
/* Define message destination structure */
/* *** FIXME **** where should be extended to handle multiple values */
{"mount", M_MOUNT},
{"terminate", M_TERM},
{"restored", M_RESTORED},
+ {"security", M_SECURITY},
+ {"alert", M_ALERT},
{"all", M_MAX+1},
{NULL, 0}
};
bpipe = open_bpipe(alert, 0, "r");
if (bpipe) {
while (fgets(line, sizeof(line), bpipe->rfd)) {
- Jmsg(jcr, M_INFO, 0, _("Alert: %s"), line);
+ Jmsg(jcr, M_ALERT, 0, _("Alert: %s"), line);
}
status = close_bpipe(bpipe);
} else {
}
if (status != 0) {
berrno be;
- Jmsg(jcr, M_INFO, 0, _("3997 Bad alert command: %s: ERR=%s.\n"),
+ Jmsg(jcr, M_ALERT, 0, _("3997 Bad alert command: %s: ERR=%s.\n"),
alert, be.strerror(status));
}
/* */
#undef VERSION
#define VERSION "1.37.1"
-#define BDATE "30 October 2004"
-#define LSMDATE "30Oct04"
+#define BDATE "04 November 2004"
+#define LSMDATE "04Nov04"
/* Debug flags */
#undef DEBUG
#define TRACEBACK 1
#define SMCHECK
#define TRACE_FILE 1
-/* #define DEVELOPER 1 */
+#define DEVELOPER 1
/* Debug flags not normally turned on */