--sd.conf password does not match dir.conf storage password
=======
+- Volume Bytes shows bytes on last volume written in Job summary.
- Fix catalog filename truncation in sql_get and sql_create. Use
only a single filename split routine.
- Add command to reset VolFiles to a larger value (don't allow
static int deletecmd(UAContext *ua, char *cmd)
{
static char *keywords[] = {
- N_("media"),
+ N_("volume"),
N_("pool"),
NULL};
bsendmsg(ua, _(
"In general it is not a good idea to delete either a\n"
-"Pool or Media since in both cases, you may delete Media\n"
-"that contain data.\n\n"));
+"Pool or a Volume since they may contain data.\n\n"));
switch (find_arg_keyword(ua, keywords)) {
case 0:
if (ji.client) {
Mmsg(&ua->cmd,
- "run job=%s client=\"%s\" storage=\"%s\" bootstrap=\"%s/restore.bsr\"",
+ "run job=\"%s\" client=\"%s\" storage=\"%s\" bootstrap=\"%s/restore.bsr\"",
job->hdr.name, ji.client->hdr.name, ji.store?ji.store->hdr.name:"",
working_directory);
} else {
Mmsg(&ua->cmd,
- "run job=%s storage=\"%s\" bootstrap=\"%s/restore.bsr\"",
+ "run job=\"%s\" storage=\"%s\" bootstrap=\"%s/restore.bsr\"",
job->hdr.name, ji.store?ji.store->hdr.name:"", working_directory);
}
}
if (mr->VolumeName[0] == 0) {
db_list_media_records(ua->db, mr, prtit, ua);
- if (!get_cmd(ua, _("Enter MediaId or Volume name to update: "))) {
+ if (!get_cmd(ua, _("Enter MediaId or Volume name: "))) {
return 0;
}
if (is_a_number(ua->cmd)) {
* Send Attributes header to Storage daemon
* <file-index> <stream> <info>
*/
+#ifndef NO_FD_SEND_TEST
if (!bnet_fsend(sd, "%ld %d 0", jcr->JobFiles, STREAM_UNIX_ATTRIBUTES)) {
if (fid >= 0) {
close(fid);
}
/* send data termination sentinel */
bnet_sig(sd, BNET_EOD);
+#endif
/*
* If the file has data, read it and send to the Storage daemon
}
#endif
+#ifndef NO_FD_SEND_TEST
if (!bnet_fsend(sd, "%ld %d 0", jcr->JobFiles, stream)) {
close(fid);
return 0;
}
Dmsg1(10, ">stored: datahdr %s\n", sd->msg);
+#endif
if (ff_pkt->flags & FO_MD5) {
MD5Init(&md5c);
sd->msg = jcr->compress_buf; /* write compressed buffer */
sd->msglen = compress_len;
+#ifndef NO_FD_SEND_TEST
if (!bnet_send(sd)) {
sd->msg = msgsave; /* restore read buffer */
sd->msglen = 0;
return 0;
}
Dmsg1(30, "Send data to FD len=%d\n", sd->msglen);
+#endif
jcr->JobBytes += sd->msglen;
sd->msg = msgsave; /* restore read buffer */
continue;
}
#endif
+#ifndef NO_FD_SEND_TEST
if (!bnet_send(sd)) {
close(fid);
return 0;
}
Dmsg1(30, "Send data to FD len=%d\n", sd->msglen);
+#endif
jcr->JobBytes += sd->msglen;
} /* end while */
* by the user to improve efficiency (i.e. poll every
* other file, every third file, ...
*/
+#ifndef NO_FD_SEND_TEST
+#ifndef NO_POLL_TEST
bnet_sig(sd, BNET_EOD_POLL);
Dmsg0(30, "Send EndData_Poll\n");
/* ***FIXME**** change to use bget_msg() */
return 0;
}
}
+#else
+ bnet_sig(sd, BNET_EOD);
+#endif
+#endif /* NO_FD_SEND_TEST */
close(fid); /* close file */
}
/* Terminate any MD5 signature and send it to Storage daemon and the Director */
if (gotMD5 && ff_pkt->flags & FO_MD5) {
MD5Final(signature, &md5c);
+#ifndef NO_FD_SEND_TEST
bnet_fsend(sd, "%ld %d 0", jcr->JobFiles, STREAM_MD5_SIGNATURE);
Dmsg1(10, "bfiled>stored:header %s\n", sd->msg);
memcpy(sd->msg, signature, 16);
sd->msglen = 16;
bnet_send(sd);
bnet_sig(sd, BNET_EOD); /* end of MD5 */
+#endif
gotMD5 = 0;
}
#ifdef really_needed
sm_check(__FILE__, __LINE__, False);
+#ifdef NO_ATTRIBUTES_TEST
// jcr->spool_attributes = 1;
+ jcr->no_attributes = 1;
+#endif
+ jcr->spool_attributes = 1;
+
if (!jcr->no_attributes && jcr->spool_attributes) {
open_spool_file(jcr, jcr->dir_bsock);
}
int stat = 0;
uint32_t wlen; /* length to write */
+#ifdef NO_TAPE_WRITE_TEST
+ empty_block(block);
+ return 1;
+#endif
ASSERT(block->binbuf == ((uint32_t) (block->bufp - block->buf)));
/* dump_block(block, "before write"); */
/* */
-#define VERSION "1.24"
+#define VERSION "1.25"
#define VSTRING "1"
-#define DATE "14 August 2002"
-#define LSMDATE "14Aug02"
+#define DATE "18 August 2002"
+#define LSMDATE "18Aug02"
/* Debug flags */
#define DEBUG 1
#define TRACEBACK 1
-#define SMCHECK 1
-/* #define DEBUG_MUTEX 1 */
+#define SMCHECK
+
+#define NO_POLL_TEST 1
+
+/* #define NO_ATTRIBUTES_TEST 1 */
+/* #define NO_TAPE_WRITE_TEST 1 */
+/* #define NO_FD_SEND TEST 1 */
+/* #define DEBUG_MUTEX 1 */