if (!start_storage_daemon_job(jcr, jcr->rstorage, jcr->wstorage)) {
return false;
}
- Dmsg0(150, "Storage daemon connection OK\n");
+ Dmsg0(000, "Storage daemon connection OK\n");
if (!send_bootstrap_file(jcr, sd) ||
!response(jcr, sd, OKbootstrap, "Bootstrap", DISPLAY_ERROR)) {
return false;
}
+ Dmsg0(000, "Bootstrap file sent\n");
+
/*
* We re-update the job start record so that the start
* time is set after the run before job. This avoids
#endif
complete_bsr(ua, rx.bsr);
- Dmsg0(000, "Print bsr\n");
- print_bsr(ua, rx.bsr);
+// Dmsg0(000, "Print bsr\n");
+// print_bsr(ua, rx.bsr);
jcr->ExpectedFiles = write_bsr_file(ua, rx);
Dmsg1(000, "Found %d files to consolidate.\n", jcr->ExpectedFiles);
alist *reserve_msgs; /* reserve fail messages */
bool write_part_after_job; /* Set to write part after job */
bool PreferMountedVols; /* Prefer mounted vols rather than new */
+ bool need_fd; /* set if we need FD connection */
uint32_t FileId; /* Last file id inserted */
static bool bootstrap_cmd(JCR *jcr)
{
+ /* If getting the bootstrap file succeeds, we do not need
+ * the FD because we will be reading.
+ */
+ jcr->need_fd = false;
return get_bootstrap_file(jcr, jcr->dir_bsock);
}
jcr->PreferMountedVols = PreferMountedVols;
jcr->authenticated = false;
+ jcr->need_fd = true;
/*
* Pass back an authorization key for the File daemon
Dsm_check(1);
Dmsg1(200, "Run_cmd: %s\n", jcr->dir_bsock->msg);
- /* The following jobs don't need the FD */
- switch (jcr->JobType) {
- case JT_COPY:
- case JT_MIGRATE:
- case JT_ARCHIVE:
- jcr->authenticated = true;
+
+ /* If we do not need the FD, we are doing a migrate, copy, or virtual
+ * backup.
+ */
+ if (!jcr->need_fd) {
do_mac(jcr);
return false;
}
*/
/*
* SD -- mac.c -- responsible for doing
- * migration, archive, and copy jobs.
+ * migration, archive, copy, and virtual backup jobs.
*
* Kern Sibbald, January MMVI
*
case JT_COPY:
Type = "Copy";
break;
+ case JT_BACKUP:
+ Type = "Virtual Backup";
+ break;
default:
Type = "Unknown";
break;
General:
15Jul08
+kes Make SD aware of Virtual Backup jobs.
kes Add VirtualFull for bat.
kes Changes to get read storage correct for Virtual Backup.
14Jul08