From fdd3fef72ab9c9464f2ce8023f7b1819985bb87c Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 23 Feb 2021 10:01:38 +0100 Subject: [PATCH] Fix Verify job issue with offset stream and compressed blocks 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bacula/src/filed/verify_vol.c b/bacula/src/filed/verify_vol.c index 31a6f577c..191ff495c 100644 --- a/bacula/src/filed/verify_vol.c +++ b/bacula/src/filed/verify_vol.c @@ -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); } -- 2.47.3