set_jcr_job_status(jcr, JS_ErrorTerminated);
}
- bstrncpy(mr.VolumeName, jcr->VolumeName, sizeof(mr.VolumeName));
- if (!db_get_media_record(jcr, jcr->db, &mr)) {
- Jmsg(jcr, M_WARNING, 0, _("Error getting Media record for Volume \"%s\": ERR=%s"),
- mr.VolumeName, db_strerror(jcr->db));
- set_jcr_job_status(jcr, JS_ErrorTerminated);
- }
update_bootstrap_file(mig_jcr);
}
mig_jcr->VolumeName[0] = 0; /* none */
}
+
+ if (mig_jcr->VolumeName[0]) {
+ /* Find last volume name. Multiple vols are separated by | */
+ char *p = strrchr(mig_jcr->VolumeName, '|');
+ if (!p) {
+ p = mig_jcr->VolumeName;
+ }
+ bstrncpy(mr.VolumeName, p, sizeof(mr.VolumeName));
+ if (!db_get_media_record(jcr, jcr->db, &mr)) {
+ Jmsg(jcr, M_WARNING, 0, _("Error getting Media record for Volume \"%s\": ERR=%s"),
+ mr.VolumeName, db_strerror(jcr->db));
+ }
+ }
+
switch (jcr->JobStatus) {
case JS_Terminated:
if (jcr->Errors || jcr->SDErrors) {
jcr->jr.Job,
jcr->fileset->hdr.name,
level_to_str(jcr->JobLevel),
- jcr->client->hdr.name,
+ jcr->client->name(),
jcr->previous_jr.JobId,
Name,
sdt,
return 1;
}
if (!jcr->fn_printed) {
- Jmsg(jcr, M_INFO, 0, "\n");
- Jmsg(jcr, M_INFO, 0, _("The following files are in the Catalog but not on disk:\n"));
+ Jmsg(jcr, M_INFO, 0, _("\nThe following files are in the Catalog but not on %s:\n"),
+ jcr->JobLevel == L_VERIFY_VOLUME_TO_CATALOG ? "the Volume(s)" : "disk");
jcr->fn_printed = true;
}
Jmsg(jcr, M_INFO, 0, " %s%s\n", row[0]?row[0]:"", row[1]?row[1]:"");
{
if (!jcr->fn_printed) {
Jmsg(jcr, M_INFO, 0, _("File: %s\n"), jcr->fname);
- jcr->fn_printed = TRUE;
+ jcr->fn_printed = true;
}
}
General:
07Aug07
+kes Modify the Verify output to specify if files are missing on
+ the Volume(s) or disk. Fixes confusion in bug #916.
+kes When more than one Volume is read in a migration job, the last
+ Volume bytes reported are from the last read volume rather than
+ the last written volume. Fixed. This fixes bug #910.
kes Fix display of Recycle flag after update volume=foo recycle=yes.
It previously printed New Recyle flag is: no. This fixes bug
#917.