           }
           print_ls_output(jcr, attr);
           num_files++;
+Index: src/stored/parse_bsr.c
+===================================================================
+--- src/stored/parse_bsr.c	(révision 8116)
++++ src/stored/parse_bsr.c	(copie de travail)
+@@ -190,6 +190,7 @@
+    for (bsr=root_bsr; bsr; bsr=bsr->next) {
+       bsr->root = root_bsr;
+    }
++   dump_bsr(root_bsr, true);
+    return root_bsr;
+ }
+ 
 Index: src/stored/bscan.c
 ===================================================================
 --- src/stored/bscan.c	(révision 8146)

    }
    /*
     * 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)
@@ -609,7 +609,7 @@
       dev->block_num++;
    } else {
       /* Save address of block just written */
-      uint64_t addr = dev->file_addr + wlen - 1;
+      uint64_t addr = dev->file_addr + wlen;
       dcr->EndBlock = (uint32_t)addr;
       dcr->EndFile = (uint32_t)(addr >> 32);
       dev->block_num = dcr->EndBlock;
@@ -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;

    return return_bsr;
 }
 
@@ -360,9 +371,9 @@
 static int match_all(BSR *bsr, DEV_RECORD *rec, VOLUME_LABEL *volrec,
                      SESSION_LABEL *sessrec, bool done, JCR *jcr)
 {
-   Dmsg0(050, "Enter match_all\n");
+   Dmsg1(050, "Enter match_all bsr=0x%p\n", bsr);
    if (bsr->done) {
-//    Dmsg0(dbglevel, "bsr->done set\n");
+      Dmsg1(dbglevel, "bsr->done set bsr=0x%p\n", bsr);
       goto no_match;
    }
    if (!match_volume(bsr, bsr->volume, volrec, 1)) {
@@ -386,8 +397,6 @@
          rec->Block, bsr->volblock->sblock, bsr->volblock->eblock);
       goto no_match;
