From: Alain Spineux Date: Fri, 18 Nov 2022 15:28:56 +0000 (+0100) Subject: bscan: update the VolEncrypted state in the catalog X-Git-Tag: Beta-15.0.0~354 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d1ea6b51019bf180a206bf6cb9522491360aa81;p=thirdparty%2Fbacula.git bscan: update the VolEncrypted state in the catalog --- diff --git a/bacula/src/stored/bscan.c b/bacula/src/stored/bscan.c index 80f9f0112..ba68c6339 100644 --- a/bacula/src/stored/bscan.c +++ b/bacula/src/stored/bscan.c @@ -505,6 +505,7 @@ static bool record_cb(DCR *dcr, DEV_RECORD *rec) bmemset(&mr, 0, sizeof(mr)); bstrncpy(mr.VolumeName, dev->VolHdr.VolumeName, sizeof(mr.VolumeName)); mr.PoolId = pr.PoolId; + mr.VolEncrypted = !!(dev->VolHdr.blkh_options & BLKHOPT_ENCRYPT_VOL); num_media++; if (db_get_media_record(bjcr, db, &mr)) { if (verbose) {