From: Eric Bollengier Date: Tue, 5 Jul 2022 13:14:01 +0000 (+0200) Subject: Fix #9284 About unnecessary warning message with empty filesets X-Git-Tag: Beta-15.0.0~552 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f61db86379caf66aeb47bcd593083702a13c772c;p=thirdparty%2Fbacula.git Fix #9284 About unnecessary warning message with empty filesets The warning message is suitable for Backup, but not really for copy/migration admin or restore job. --- diff --git a/bacula/src/dird/job.c b/bacula/src/dird/job.c index 4227b7cc2..74fe49f20 100644 --- a/bacula/src/dird/job.c +++ b/bacula/src/dird/job.c @@ -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 ||