]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix Verify job issue with offset stream and compressed blocks
authorEric Bollengier <eric@baculasystems.com>
Tue, 23 Feb 2021 09:01:38 +0000 (10:01 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:02 +0000 (09:03 +0100)
Description:
------------

When a Plugin generates an OFFSET stream and the FileSet uses
data compression, a Verify job (level=data) did not handle
correctly the offset header in the data stream, resulting
the following kind of message:

  Error: Compressed header version error. Got=0x4f58 want=0x1

bacula/src/filed/verify_vol.c

index 31a6f577c0bb23054a8603a7f59498af15f34414..191ff495c4da2c0eee4671a827f626f65fac3134 100644 (file)
@@ -511,7 +511,8 @@ void do_verify_volume(JCR *jcr)
 
             if (vctx.stream == STREAM_SPARSE_DATA
                 || vctx.stream == STREAM_SPARSE_COMPRESSED_DATA
-                || vctx.stream == STREAM_SPARSE_GZIP_DATA) {
+                || vctx.stream == STREAM_SPARSE_GZIP_DATA
+                || vctx.full_stream & STREAM_BIT_OFFSETS) {
                vctx.skip_sparse_header(&wbuf, &wsize);
             }