     }
     /*
      * Check for Start or End of Session Record
-Index: src/stored/record.c
-===================================================================
---- src/stored/record.c	(révision 8116)
-+++ src/stored/record.c	(copie de travail)
-@@ -452,8 +452,8 @@
-       rec->Block = block->BlockNumber;
-       rec->File = ((DEVICE *)block->dev)->file;
-    } else {
--      rec->Block = ((DEVICE *)block->dev)->EndBlock;
--      rec->File = ((DEVICE *)block->dev)->EndFile;
-+      rec->Block = ((DEVICE *)block->dev)->block_num;
-+      rec->File = ((DEVICE *)block->dev)->file;
-    }   
- 
- 
-Index: src/stored/block.c
-===================================================================
---- src/stored/block.c	(révision 8116)
-+++ src/stored/block.c	(copie de travail)
-@@ -1119,8 +1119,8 @@
-       uint64_t addr = dev->file_addr + block->read_len - 1;
-       dcr->EndBlock = (uint32_t)addr;
-       dcr->EndFile = (uint32_t)(addr >> 32);
--      dev->block_num = dcr->EndBlock;
--      dev->file = dcr->EndFile;
-+      dev->block_num = (uint32_t)(dev->file_addr);
-+      dev->file = (uint32_t)(dev->file_addr  >> 32);
-    }
-    dcr->VolMediaId = dev->VolCatInfo.VolMediaId;
-    dev->file_addr += block->read_len;

                rec->remainder = 0;
                rec->state &= ~REC_PARTIAL_RECORD;
                if (try_repositioning(jcr, rec, dcr)) {
@@ -346,6 +346,12 @@
        */
       if (dev->file > bsr->volfile->sfile ||             
          (dev->file == bsr->volfile->sfile && dev->block_num > bsr->volblock->sblock)) {
+         Dmsg4(dbglvl, _("Reposition from (file:block) %u:%u to %u:%u\n"),
+            dev->file, dev->block_num, bsr->volfile->sfile,
+            bsr->volblock->sblock);
+         Jmsg(jcr, M_ERROR, 0, _("Reposition from (file:block) %u:%u to %u:%u\n"),
+            dev->file, dev->block_num, bsr->volfile->sfile,
+            bsr->volblock->sblock);
          return false;
       }
       if (verbose) {
Index: src/stored/bls.c
===================================================================
--- src/stored/bls.c	(révision 8116)
+++ src/stored/bls.c	(copie de travail)
@@ -400,8 +400,8 @@
 
       if (file_is_included(ff, attr->fname) && !file_is_excluded(ff, attr->fname)) {

          }
          print_ls_output(jcr, attr);
          num_files++;
Index: bscan.c
===================================================================
--- bscan.c	(révision 8146)
+++ bscan.c	(copie de travail)
@@ -420,9 +420,9 @@
    }
 
