     if (!volblock) {
        return 1;                       /* no specification matches all */
     }
-@@ -622,9 +615,12 @@
+@@ -622,8 +644,9 @@
     if (rec->state & REC_ISTAPE) {
        return 1;                       /* All File records OK for this match */
     }
 -//  Dmsg3(dbglevel, "match_volblock: sblock=%u eblock=%u recblock=%u\n",
 -//             volblock->sblock, volblock->eblock, rec->Block);
--   if (volblock->sblock <= rec->Block && volblock->eblock >= rec->Block) {
 +   Dmsg3(dbglevel, "match_volblock: sblock=%u eblock=%u recblock=%u\n",
 +         volblock->sblock, volblock->eblock, rec->Block);
 +
-+   /* FIXME: find why we need to use sblock - 1 */
-+   uint32_t min = (volblock->sblock)?volblock->sblock-1:0;     /* we don't test with -1 */
-+   if (min <= rec->Block && volblock->eblock >= rec->Block) {
+    if (volblock->sblock <= rec->Block && volblock->eblock >= rec->Block) {
        return 1;
     }
-    /* Once we get past last eblock, we are done */
-Index: bscan.c
+Index: src/stored/bscan.c
 ===================================================================
---- bscan.c	(revision 8146)
-+++ bscan.c	(working copy)
+--- src/stored/bscan.c	(révision 8146)
++++ src/stored/bscan.c	(copie de travail)
 @@ -420,9 +420,9 @@
     }
  

Index: match_bsr.c
===================================================================
--- match_bsr.c	(revision 8116)
+++ match_bsr.c	(working copy)
@@ -607,14 +607,7 @@
 
 static int match_volblock(BSR *bsr, BSR_VOLBLOCK *volblock, DEV_RECORD *rec, bool done)
 {

    }
    /*
     * Check for Start or End of Session Record
Index: src/stored/block.c
===================================================================
--- src/stored/block.c	(révision 8116)
+++ src/stored/block.c	(copie de travail)
@@ -1116,7 +1116,7 @@
       dcr->EndBlock = dev->EndBlock;
       dcr->EndFile  = dev->EndFile;
    } else {
-      uint64_t addr = dev->file_addr + block->read_len - 1;
+      uint64_t addr = dev->file_addr + block->read_len;
       dcr->EndBlock = (uint32_t)addr;
       dcr->EndFile = (uint32_t)(addr >> 32);
       dev->block_num = dcr->EndBlock;
