]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix #6119 About listing files being verified
authorMichal Rakowski <michal.rakowski@baculasystems.com>
Wed, 4 Aug 2021 10:29:38 +0000 (12:29 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:03 +0000 (09:03 +0100)
bacula/src/filed/verify.c
bacula/src/filed/verify_vol.c
bacula/src/lib/message.h
bacula/src/lib/parse_conf.c

index c2aabf40c37122065c1cbb9bbd18517d169e14ac..4112546c3620cbc0dc416f00ac139617ebd630c4 100644 (file)
@@ -83,6 +83,8 @@ static int verify_file(JCR *jcr, FF_PKT *ff_pkt, bool top_level)
       return 0;
    }
 
+   Jmsg(jcr, M_VERIFIED, 0, "Veryfying: %s\n", ff_pkt->fname);
+
    dir = jcr->dir_bsock;
    jcr->num_files_examined++;         /* bump total file count */
 
index 0fc5a4d8ef3e6e61a3bcc307d040214e2bb21e8f..a8b516e535cfaadb0f66b9bea1129d7bfc280ad9 100644 (file)
@@ -357,6 +357,8 @@ void do_verify_volume(JCR *jcr)
          attr->data_stream = decode_stat(attr->attr, &attr->statp,
                                          sizeof(attr->statp), &attr->LinkFI);
 
+         Jmsg(jcr, M_VERIFIED, 0, "Veryfying: %s\n", attr->fname);
+
          jcr->lock();
          jcr->JobFiles++;
          jcr->num_files_examined++;
index 38dbb990b95a533940189a398a8cdffbe0461815..e3a966ae63715c0511d5ba026ee26733f793dbf2 100644 (file)
@@ -94,10 +94,11 @@ enum {
    M_RESTORED,                        /* ls -l of restored files */
    M_SECURITY,                        /* security violation */
    M_ALERT,                           /* tape alert messages */
-   M_VOLMGMT                          /* Volume management messages */
+   M_VOLMGMT,                         /* Volume management messages */
+   M_VERIFIED                         /* Verify job messages */
 };
 
-#define M_MAX      M_VOLMGMT          /* keep this updated ! */
+#define M_MAX      M_VERIFIED         /* keep this updated ! */
 #define M_ALL      M_MAX+1
 
 /* We cannot store more than this amount of custom events */
index 89f6631b399c5a88cb157358c4efe771d6f0c31a..d4b7580e09c25ddbe1757f18a1bc5e865b8d57f3 100644 (file)
@@ -153,6 +153,7 @@ s_kw msg_types[] = {
    {"Alert",         M_ALERT},
    {"VolMgmt",       M_VOLMGMT},
    {"ErrorTerm",     M_ERROR_TERM},
+   {"Verified",      M_VERIFIED},
    {"All",           M_MAX+1},
    {NULL,            0}
 };