]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix #9284 About unnecessary warning message with empty filesets
authorEric Bollengier <eric@baculasystems.com>
Tue, 5 Jul 2022 13:14:01 +0000 (15:14 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:58 +0000 (13:56 +0200)
The warning message is suitable for Backup, but not really for copy/migration
admin or restore job.

bacula/src/dird/job.c

index 4227b7cc2df4f3ad3347bfcbfdc772868972bb0e..74fe49f209742b96c3e6e54a020cdaa1832b2374 100644 (file)
@@ -1408,7 +1408,8 @@ bool get_or_create_fileset_record(JCR *jcr)
        */
       bin_to_base64(fsr.MD5, sizeof(fsr.MD5), (char *)digest, MD5HashSize, false);
       bstrncpy(jcr->fileset->MD5, fsr.MD5, sizeof(jcr->fileset->MD5));
-   } else {
+   } else if (jcr.getJobType() == JT_BACKUP) {
+      /* Empty fileset is ok for copy, admin, migration or restore */
       Jmsg(jcr, M_WARNING, 0, _("FileSet MD5 digest not found.\n"));
    }
    if (!jcr->fileset->ignore_fs_changes ||