-/*
- * Bacula File Daemon backup.c send file attributes and data
- * to the Storage daemon.
- *
- * Kern Sibbald, March MM
- *
- * Version $Id$
- *
- */
/*
Bacula® - The Network Backup Solution
(FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
Switzerland, email:ftf@fsfeurope.org.
*/
+/*
+ * Bacula File Daemon backup.c send file attributes and data
+ * to the Storage daemon.
+ *
+ * Kern Sibbald, March MM
+ *
+ * Version $Id$
+ *
+ */
#include "bacula.h"
#include "filed.h"
if (!find_files(jcr, (FF_PKT *)jcr->ff, save_file, (void *)jcr)) {
ok = false; /* error */
set_jcr_job_status(jcr, JS_ErrorTerminated);
-// Jmsg(jcr, M_FATAL, 0, _("Find files error.\n"));
}
free_pool_memory(jcr->acl_text);
* Note, if is_win32_backup, we must open the Directory so that
* the BackupRead will save its permissions and ownership streams.
*/
-
if (ff_pkt->type != FT_LNKSAVED && S_ISREG(ff_pkt->statp.st_mode)) {
#ifdef HAVE_WIN32
do_read = !is_portable_backup(&ff_pkt->bfd) || ff_pkt->statp.st_size > 0;
sd->msglen = size;
bnet_send(sd);
bnet_sig(sd, BNET_EOD); /* end of checksum */
- goto good_rtn;
}
/* Terminate any digest and send it to Storage daemon and the Director */
if (!crypto_cipher_finalize(cipher_ctx->cipher, (uint8_t *)&cipher_ctx->buf[cipher_ctx->buf_len],
&decrypted_len)) {
/* Writing out the final, buffered block failed. Shouldn't happen. */
- Jmsg1(jcr, M_FATAL, 0, _("Decryption error for %s\n"), jcr->last_fname);
+ Jmsg3(jcr, M_ERROR, 0, _("Decryption error. buf_len=%d decrypt_len=%d on file %s\n"),
+ cipher_ctx->buf_len, decrypted_len, jcr->last_fname);
}
Dmsg2(30, "Flush decrypt len=%d buf_len=%d\n", decrypted_len, cipher_ctx->buf_len);