block numbers in btape "test". Possibly adjust in Bacula.
- Fix possible bug in update volumefrompool (email 9/28 from
jesk@killall.org
+- Fix storage overrides in Run directives.
- Document a get out of jail procedure if everything breaks if
you lost/broke the Catalog -- do the same for "I know my
/* Cancel Storage daemon */
if (jcr->store_bsock) {
- ua->jcr->store = jcr->store;
- for (int i=0; i<MAX_STORE; i++) {
- ua->jcr->storage[i] = jcr->storage[i];
+ if (!ua->jcr->storage[0]) {
+ copy_storage(ua->jcr, jcr);
+ } else {
+ ua->jcr->store = jcr->store;
}
if (!connect_to_storage_daemon(ua->jcr, 10, SDConnectTimeout, 1)) {
bsendmsg(ua, _("Failed to connect to Storage daemon.\n"));
for (int i=0; i<MAX_STORE; i++) {
jcr->storage[i] = job->storage[i];
}
- if (jcr->storage[0]) {
+ if (!jcr->store && jcr->storage[0]) {
jcr->store = (STORE *)jcr->storage[0]->first();
}
jcr->client = job->client;
BSOCK *sd;
STORE *store = jcr->store;
if (!store) {
- store = (STORE *)jcr->storage[0]->first();
+ jcr->store = store = (STORE *)jcr->storage[0]->first();
}
/*
}
sd->res = (RES *)store; /* save pointer to other end */
jcr->store_bsock = sd;
- jcr->store = store;
if (!authenticate_storage_daemon(jcr, store)) {
return false;